feat: Add previous_value field to ContractSlot

This change is required by the DCI to properly detect potential address changes (retriggers) on packed storage slots.
This commit is contained in:
kayibal
2025-09-03 12:21:10 +01:00
committed by Alan Höng
parent ae6f5e0a12
commit 8b4611f9bb
4 changed files with 17 additions and 4 deletions

View File

@@ -56,7 +56,11 @@ pub fn get_block_storage_changes(block: &eth::v2::Block) -> Vec<TransactionStora
for change in changes {
latest_changes.insert(
change.key.clone(),
ContractSlot { slot: change.key, value: change.new_value },
ContractSlot {
slot: change.key,
value: change.new_value,
previous_value: change.old_value,
},
);
}