Skip to content

Commit d78a087

Browse files
committed
added prev tracing
1 parent 8deb454 commit d78a087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/evm/src/eth/block.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,16 +395,16 @@ pub fn sort_and_remove_duplicates_in_bal(
395395
mut alloy_bal: BlockAccessList,
396396
withdrawal_bal: BlockAccessList,
397397
) -> BlockAccessList {
398+
tracing::debug!("Bal before modification:{:?}", alloy_bal);
398399
let mut last_per_address = HashMap::new();
399400
for account in withdrawal_bal {
400-
last_per_address.insert(account.address, account); // overwrites previous entries
401+
last_per_address.insert(account.address, account);
401402
}
402403

403404
alloy_bal.extend(last_per_address.into_values());
404405

405406
alloy_bal.sort_by_key(|ac| ac.address);
406407

407-
// Step 4: Merge duplicates (same as your original function)
408408
let mut merged: Vec<AccountChanges> = Vec::new();
409409
for account in alloy_bal {
410410
if let Some(last) = merged.last_mut() {
@@ -419,6 +419,6 @@ pub fn sort_and_remove_duplicates_in_bal(
419419
}
420420
merged.push(account);
421421
}
422-
422+
tracing::debug!("Bal after modification:{:?}", merged);
423423
merged
424424
}

0 commit comments

Comments
 (0)