feat: replace duplicate Withdrawal type with alloy (#7931)

This commit is contained in:
Matthias Seitz
2024-04-27 17:09:28 +02:00
committed by GitHub
parent 5f15af5401
commit 2deb259ead
7 changed files with 82 additions and 142 deletions

View File

@ -152,7 +152,7 @@ pub fn insert_post_block_withdrawals_balance_increments(
for withdrawal in withdrawals.iter() {
if withdrawal.amount > 0 {
*balance_increments.entry(withdrawal.address).or_default() +=
withdrawal.amount_wei();
withdrawal.amount_wei().to::<u128>();
}
}
}