Skip to content

Commit

Permalink
accept zero setup steps in setup execution
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Oct 7, 2024
1 parent 49acb06 commit 25ab4f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let min_balance = parse_ether(&min_balance)?;

let signers = get_signers_with_defaults(private_keys);
let setup = testconfig
.setup
.as_ref()
.expect("No setup function calls found in testfile");
check_private_keys(setup, &signers);
check_private_keys(&testconfig.setup.to_owned().unwrap_or(vec![]), &signers);
check_balances(&signers, min_balance, &rpc_client).await;

let scenario = TestScenario::new(
Expand Down

0 comments on commit 25ab4f1

Please sign in to comment.