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

@@ -138,6 +138,9 @@ pub struct ContractSlot {
/// The new value for this storage slot.
#[prost(bytes="vec", tag="3")]
pub value: ::prost::alloc::vec::Vec<u8>,
/// The old value of this storage slot
#[prost(bytes="vec", tag="4")]
pub previous_value: ::prost::alloc::vec::Vec<u8>,
}
/// A struct for following the token balance changes for a contract.
#[allow(clippy::derive_partial_eq_without_eq)]