Function ink_env::take_contract_storage
source · pub fn take_contract_storage<K, R>(key: &K) -> Result<Option<R>>where
K: Encode,
R: Storable,
Expand description
Removes the value
at key
, returning the previous value
at key
from storage.
§Errors
- If the decoding of the typed value failed (
KeyNotFound
)