pub fn get_contract_storage<R>(key: &Key) -> Result<Option<R>> where
    R: Decode, 
Expand description

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)