Skip to content

Commit

Permalink
Use default for tokenfactory token balances if none specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
dowlandaiello committed Jul 18, 2024
1 parent 2cc5164 commit 8fdf397
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions local-interchaintest/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ pub struct Test {

/// How much of a given subdenom acc0 owns on a given chain
/// (chain, token) -> balance
#[builder(default)]
tokenfactory_token_balances_acc0: HashMap<Denom, u128>,

/// (Denom a, denom b) or (offer asset, ask asset) -> pool
Expand All @@ -335,14 +336,6 @@ pub struct Test {
run_arbbot: bool,
}

impl TestBuilder {
pub fn with_arbbot(mut self) -> Self {
self.run_arbbot = Some(true);

self
}
}

impl Test {
pub fn setup(
&mut self,
Expand Down Expand Up @@ -515,6 +508,12 @@ impl TestBuilder {

self
}

pub fn with_arbbot(mut self) -> Self {
self.run_arbbot = Some(true);

self
}
}

/// A pool that should be tested against.
Expand Down

0 comments on commit 8fdf397

Please sign in to comment.