[−][src]Function ink_env::get_contract_storage
pub fn get_contract_storage<R>(key: &Key) -> Result<Option<R>> where
R: Decode,
Returns the value stored under the given key in the contract's storage if any.
Errors
- If the decoding of the typed value failed (
KeyNotFound
)