Skip to content

Commit 4a15130

Browse files
committed
rm unwrap
1 parent b0608ed commit 4a15130

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/evm/src/eth/block.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ where
268268
.database
269269
.basic(withdrawal.address)
270270
.unwrap()
271-
.unwrap()
271+
.unwrap_or_default()
272272
.balance;
273-
let final_balance = initial.saturating_add(U256::from(withdrawal.amount));
273+
let final_balance = initial
274+
.saturating_add(U256::from(withdrawal.amount_wei().to::<u128>()));
274275
if initial != final_balance {
275276
alloy_bal.push(
276277
AccountChanges::new(withdrawal.address).with_balance_change(

0 commit comments

Comments
 (0)