pub trait Flush: SpreadLayout + InkStorage {
    fn flush(&self) { ... }
    fn load(&mut self) { ... }
}
Expand description

This trait is automatically implemented for storage.

Provided Methods

Method flushes the current state of Self into storage. ink! recursively calculate a key of each field. So if you want to flush the correct state of the contract, you have to this method on storage struct.

Method loads the current state of Self from storage. ink! recursively calculate a key of each field. So if you want to load the correct state of the contract, you have to this method on storage struct.

Implementors