Function cfx_executor::internal_contract::suicide
source · pub fn suicide(
contract_address: &AddressWithSpace,
refund_address: &AddressWithSpace,
state: &mut State,
spec: &Spec,
substate: &mut Substate,
tracer: &mut dyn TracerTrait
) -> Result<()>
Expand description
The Actual Implementation of suicide
.
The contract which has non zero collateral_for_storage
cannot suicide,
otherwise it will:
- refund collateral for code
- refund sponsor balance
- refund contract balance
- kill the contract