Skip to content

Commit

Permalink
Only create denoms once.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jul 18, 2024
1 parent b7fa07d commit fff600e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local-interchaintest/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ pub struct Test {

/// Fully qualified denoms (i.e., factory/neutronxyz/tokenabc or untrn or ibc/xyz)
#[builder(default)]
denoms: Vec<String>,
denoms: HashSet<String>,

/// How much of a given subdenom acc0 owns on a given chain
/// (chain, token) -> balance
Expand Down Expand Up @@ -492,7 +492,7 @@ impl TestBuilder {
self.borrow_mut()
.denoms
.get_or_insert_with(Default::default)
.push(denom.to_string().into());
.insert(denom.to_string().into());

if denom.to_string().contains("factory") {
self.borrow_mut()
Expand Down

0 comments on commit fff600e

Please sign in to comment.