Skip to content

Commit

Permalink
Apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Jan 9, 2025
1 parent 18a8952 commit ee40275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/engine/off_chain/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ fn test_set_account_balance() -> Result<()> {
let minimum_balance = ChainSpec::default().minimum_balance;

let result = std::panic::catch_unwind(|| {
set_account_balance(H160::from([0x1; 20]), U256::from(minimum_balance - 1))
set_account_balance(H160::from([0x1; 20]), minimum_balance - 1)
});

assert!(result.is_err());

set_account_balance(H160::from([0x1; 20]), U256::zero());

set_account_balance(H160::from([0x1; 20]), U256::from(minimum_balance + 1));
set_account_balance(H160::from([0x1; 20]), minimum_balance + 1);

Ok(())
})
Expand Down

0 comments on commit ee40275

Please sign in to comment.