Test Function: test_self_destructing_initcode()

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

Back to test_self_destructing_initcode().

Parametrized Test Cases

Test ID (Abbreviated) selfdestruct_contract_initial_balance call_times create_opcode
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Prague-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Prague-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Prague-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Prague-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Prague-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Prague-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Prague-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Prague-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE 0 0 CREATE
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_0-call_times_0-create_opcode_CREATE2 0 0 CREATE2
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE 0 1 CREATE
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_0-call_times_1-create_opcode_CREATE2 0 1 CREATE2
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE 100000 0 CREATE
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_100000-call_times_0-create_opcode_CREATE2 100000 0 CREATE2
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE 100000 1 CREATE
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_100000-call_times_1-create_opcode_CREATE2 100000 1 CREATE2