Skip to content

Commit

Permalink
test: add sanity test for with gas price (#6826)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 16, 2024
1 parent 0f68fa9 commit 156cb13
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/forge/bin/cmd/script/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,4 +953,17 @@ mod tests {
ScriptArgs::parse_from(["foundry-cli", "DeployV1", "--priority-gas-price", "100"]);
assert!(args.priority_gas_price.is_some());
}

// <https://github.com/foundry-rs/foundry/issues/5910>
#[test]
fn test_5910() {
let args: ScriptArgs = ScriptArgs::parse_from([
"foundry-cli",
"--broadcast",
"--with-gas-price",
"0",
"SolveTutorial",
]);
assert!(args.with_gas_price.unwrap().is_zero());
}
}

0 comments on commit 156cb13

Please sign in to comment.