zink

Attribute Macro transient_storage

#[transient_storage]
Expand description

Declare transient storage (cleared after each transaction)

/// transient storage value
#[zink::transient_storage(i32)]
pub struct TempCounter;

/// transient storage mapping
#[zink::transient_storage(i32, i32)]
pub struct TempMapping;