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:
@@ -56,7 +56,11 @@ pub fn get_block_storage_changes(block: ð::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,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user