Function pro_env::set_contract_storage[][src]

pub fn set_contract_storage<V>(key: &Key, value: &V) where
    V: Encode

Writes the value to the contract storage under the given key.

Panics

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