Function ink_env::set_contract_storage_return_size
source · [−]Expand description
Writes the value to the contract storage under the given key and returns the size of the pre-existing value at the specified key if any.
Compatibility
This function requires minimum substrate-contracts-node
version v0.15.1
,
or any node built with Substrate version later than
#7d233c2.
Panics
- If the encode length of value exceeds the configured maximum value length of a storage entry.
Note
This is equivalent to the set_contract_storage
method,
but gives the information on the pre-existing value size.