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:29:52 +01:00
committed by Alan Höng
parent 8b4611f9bb
commit 61ad26c17a

View File

@@ -72,7 +72,7 @@ impl TransactionChangesBuilder {
} }
/// Unique contract/account addresses that have been changed so far. /// Unique contract/account addresses that have been changed so far.
pub fn changed_contracts(&self) -> impl Iterator<Item=&[u8]> { pub fn changed_contracts(&self) -> impl Iterator<Item = &[u8]> {
self.contract_changes self.contract_changes
.keys() .keys()
.map(|k| k.as_slice()) .map(|k| k.as_slice())