tuweni / org.apache.tuweni.evm / TransactionalEVMHostContext / getCodeSize

getCodeSize

suspend fun getCodeSize(address: Address): Int (source)

Get code size function.

This function is used by a VM to get the size of the code stored in the account at the given address.

Parameters

address - The address of the account.

Return
The size of the code in the account or 0 if the account does not exist.