Skip to content

Commit

Permalink
Print added storage slots
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Nov 26, 2024
1 parent 10eecf7 commit 987e095
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/ef_tests/levm/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,18 @@ impl fmt::Display for AccountUpdatesReport {
)?;
updates += 1;
}
for (added_storage_address, added_storage_slot) in updated_account.storage.iter() {
writeln!(
f,
"{}",
format!(
" Storage slot added: {added_storage_address}: {} -> {}",
added_storage_slot.original_value, added_storage_slot.current_value
)
.red()
)?;
updates += 1;
}
if updates == 0 {
writeln!(f, "{}", " No changes".green())?;
}
Expand Down

0 comments on commit 987e095

Please sign in to comment.