Skip to content

Commit 059f2ab

Browse files
committed
rm wrong logic
1 parent 20d162f commit 059f2ab

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ alloy-primitives = { version = "1.0.0", default-features = false }
5050
alloy-sol-types = { version = "1.0.0", default-features = false }
5151
alloy-rpc-types-eth = { version = "1.0.41", default-features = false }
5252
alloy-rpc-types-engine = { version = "1.0.41", default-features = false }
53-
alloy-hardforks = { version = "0.4.4" }
53+
alloy-hardforks = { version = "0.4.3" }
5454

5555
# op-alloy
56-
alloy-op-hardforks = { version = "0.4.4" }
56+
alloy-op-hardforks = { version = "0.4.3" }
5757
op-alloy-consensus = { version = "0.22", default-features = false }
5858
op-alloy-rpc-types-engine = { version = "0.22", default-features = false }
5959

crates/evm/src/eth/block.rs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -286,20 +286,16 @@ where
286286
// let final_balance = initial
287287
// .saturating_add(U256::from(withdrawal.amount_wei().to::<u128>()));
288288
if let Some(balance) = balance_increments.get(&withdrawal.address) {
289-
if *balance != 0 {
290-
withdrawal_bal.push(
291-
AccountChanges::new(withdrawal.address).with_balance_change(
292-
BalanceChange::new(
293-
last_bal_index,
294-
U256::from(
295-
initial.saturating_add(U256::from(*balance)),
296-
),
297-
),
289+
withdrawal_bal.push(
290+
AccountChanges::new(withdrawal.address).with_balance_change(
291+
BalanceChange::new(
292+
last_bal_index,
293+
U256::from(initial.saturating_add(U256::from(*balance))),
298294
),
299-
);
300-
} else {
301-
withdrawal_bal.push(AccountChanges::new(withdrawal.address));
302-
}
295+
),
296+
);
297+
} else {
298+
withdrawal_bal.push(AccountChanges::new(withdrawal.address));
303299
}
304300
}
305301
}

0 commit comments

Comments
 (0)