Test Function: test_self_destructing_initcode()

Test that a contract can self-destruct in its initcode.

Parametrized Test Cases

Test ID selfdestruct_contract_initial_balance call_times create_opcode
selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2