tuweni / org.apache.tuweni.evm / HostContext / getCode

getCode

abstract suspend fun getCode(address: Address): Bytes (source)

Copy code function.

This function is used by an EVM to request a copy of the code of the given account to the memory buffer provided by the EVM. The Client MUST copy the requested code, starting with the given offset, to the provided memory buffer up to the size of the buffer or the size of the code, whichever is smaller.

Parameters

address - The address of the account.

Return
A copy of the requested code.