[−][src]Type Definition evmc_sys::evmc_set_storage_fn
type evmc_set_storage_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address, key: *const evmc_bytes32, value: *const evmc_bytes32) -> evmc_storage_status>;
Set storage callback function.
This callback 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 evmc_message::destination).
@param context The pointer to the Host execution context. @param address The address of the account. @param key The index of the storage entry. @param value The value to be stored. @return The effect on the storage item.