Skip to content

Commit

Permalink
chore: prefer assert
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Sep 11, 2024
1 parent eeec9f3 commit b511989
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions crates/yttrium/src/transaction/send/safe_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,10 @@ mod tests {
amount: U256,
to: Address,
) -> eyre::Result<()> {
if amount > U256::from(20) {
// Basic check (which we can tune) to make sure we don't use
// excessive amounts (e.g. 0.1) of test ETH. It is not infinite, so
// we should use the minimum amount necessary.
panic!("You probably don't need that much");
}
println!("address: {}", faucet.address());
// Basic check (which we can tune) to make sure we don't use excessive
// amounts (e.g. 0.1) of test ETH. It is not infinite, so we should use
// the minimum amount necessary.
assert!(amount < U256::from(20), "You probably don't need that much");

ProviderBuilder::new()
.with_recommended_fillers()
Expand Down

0 comments on commit b511989

Please sign in to comment.