Function ink_env::get_contract_storage
source · pub fn get_contract_storage<K, R>(key: &K) -> Result<Option<R>>
Expand description
Returns the value stored under the given storage key in the contract’s storage if any.
§Errors
- If the decoding of the typed value failed (
KeyNotFound
)