abstract suspend fun setStorage(address: Address, key: Bytes, value: Bytes32): Int
(source)
Set storage function.
This function is used by a VM to update the given account storage entry. The VM MUST make sure that the account exists. This requirement is only a formality because VM implementations only modify storage of the account of the current execution context (i.e. referenced by message::destination).
address
- The address of the account.
key
- The index of the storage entry.
value
- The value to be stored.
Return
The effect on the storage item.