test_self_destructing_initcode_create_tx()
¶
Documentation for tests/cancun/eip6780_selfdestruct/test_selfdestruct.py::test_self_destructing_initcode_create_tx@49a16fac
.
Generate fixtures for these test cases for Prague with:
fill -v tests/cancun/eip6780_selfdestruct/test_selfdestruct.py::test_self_destructing_initcode_create_tx --fork Prague
Use a Create Transaction to execute a self-destructing initcode.
Behavior should be the same before and after EIP-6780.
Test using
- Different initial balances for the self-destructing contract
- Different transaction value amounts
Source code in tests/cancun/eip6780_selfdestruct/test_selfdestruct.py
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | selfdestruct_contract_initial_balance | tx_value |
---|---|---|
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Shanghai-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Shanghai-state_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Cancun-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Cancun-state_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Prague-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Prague-state_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Prague-state_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Prague-state_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Prague-state_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Osaka-blockchain_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_0-tx_value_0 | 0 | 0 |
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_0-tx_value_100000 | 0 | 100000 |
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_100000-tx_value_0 | 100000 | 0 |
...fork_Osaka-state_test-selfdestruct_contract_initial_balance_100000-tx_value_100000 | 100000 | 100000 |