pub fn set_contract_storage<V>(key: &Key, value: &V) -> Option<u32> where
    V: Encode, 
Expand description

Writes the value to the contract storage under the given key and returns the size of pre-existing value at the specified key if any.


  • If the encode length of value exceeds the configured maximum value length of a storage entry.