File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2184,7 +2184,7 @@ impl EthApi {
21842184 pub async fn anvil_add_balance ( & self , address : Address , balance : U256 ) -> Result < ( ) > {
21852185 node_info ! ( "anvil_addBalance" ) ;
21862186 let current_balance = self . backend . get_balance ( address, None ) . await ?;
2187- self . backend . set_balance ( address, current_balance + balance) . await ?;
2187+ self . backend . set_balance ( address, current_balance. saturating_add ( balance) ) . await ?;
21882188 Ok ( ( ) )
21892189 }
21902190
Original file line number Diff line number Diff line change @@ -1243,7 +1243,7 @@ async fn test_debug_trace_transaction_pre_state_tracer() {
12431243 "nonce": 1
12441244 },
12451245 "0x70997970c51812dc3a010c7d01b50e0d17dc79c8": {
1246- "balance": "0x56bc75e2d630fffff "
1246+ "balance": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff "
12471247 },
12481248 "0xe7f1725e7734ce288f8367e1bb143e90bb3f0512": {
12491249 "balance": "0x0",
You can’t perform that action at this time.
0 commit comments