tuweni / org.apache.tuweni.evm / HostContext / getStorage

getStorage

abstract suspend fun getStorage(address: Address, key: Bytes32): Bytes32 (source)

Get storage function.

This function is used by a VM to query first the transaction changes, and then the given account storage entry.

Parameters

address - The address of the account.

key - The index of the account's storage entry.

Return
The storage value at the given storage key or null bytes if the account does not exist.