Type Definition evmc_sys::evmc_access_account_fn[][src]

pub type evmc_access_account_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address) -> evmc_access_status>;
Expand description

Access account callback function.

This callback function is used by a VM to add the given address to accessed_addresses substate (EIP-2929).

@param context The Host execution context. @param address The address of the account. @return EVMC_ACCESS_WARM if accessed_addresses already contained the address or EVMC_ACCESS_COLD otherwise.