Test SELFDESTRUCT No Burn¶
Documentation for tests/amsterdam/eip8246_selfdestruct_no_burn/test_selfdestruct_no_burn.py@ffe48572.
Generate fixtures for these test cases for Bogota with:
Tests for EIP-8246: Remove SELFDESTRUCT balance burn.
Further fork-aware EIP-8246 coverage lives in the EIP-6780 selfdestruct
tests (tests/cancun/eip6780_selfdestruct).
Test Functions Overview¶
| Name | Type | Cases (Bogota) | Description |
|---|---|---|---|
test_create2_redeploy_over_remnant |
blockchain_test | 2 | Case 17 of the EIP and its third security consideration. Because the |
test_create_transaction_initcode_selfdestruct |
state_test | 2 | Depth-0 creation-tx initcode SELFDESTRUCT keeps balance per EIP-8246. |
test_created_coinbase_initcode_selfdestruct_keeps_priority_fee |
state_test | 2 | Test a creation tx whose created address is the coinbase and whose |
test_created_coinbase_selfdestruct_keeps_priority_fee |
state_test | 4 | Test a selfdestructing contract created in the same transaction and whose |
test_deployed_code_selfdestruct_clears_code |
state_test | 2 | Verify finalization clears deployed code and storage but keeps balance. |
test_deterministic_factory_redeploy_takes_balance |
blockchain_test | 1 | The EIP's third security consideration, using the permissionless |
test_selfdestructing_initcode_preserves_balance |
blockchain_test | 432 | Same-tx SELFDESTRUCT preserves the victim's balance per EIP-8246. |