evmc_selfdestruct_fn

Type Alias evmc_selfdestruct_fn 

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

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.

Aliased Type§

pub enum evmc_selfdestruct_fn {
    None,
    Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_address, *const evmc_address)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_address, *const evmc_address))

Some value of type T.