tuweni / org.apache.tuweni.evm / TransactionalEVMHostContext / selfdestruct

selfdestruct

suspend fun selfdestruct(address: Address, beneficiary: Address): Unit (source)

Selfdestruct function.

This 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.

Parameters

address - The address of the contract to be selfdestructed.

beneficiary - The address where the remaining ETH is going to be transferred.