File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments