[][src]Type Definition evmc_sys::evmc_selfdestruct_fn

type evmc_selfdestruct_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address, beneficiary: *const evmc_address)>;

Selfdestruct callback function.

This callback function is used by an EVM to SELFDESTRUCT given contract. The execution of the contract will not be stopped, that is up to the EVM.

@param context The pointer to the Host execution context. See ::evmc_host_context. @param address The address of the contract to be selfdestructed. @param beneficiary The address where the remaining ETH is going to be transferred.