Skip to content

Test SELFDESTRUCT No Burn

Documentation for tests/amsterdam/eip8246_selfdestruct_no_burn/test_selfdestruct_no_burn.py@49633827.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip8246_selfdestruct_no_burn/test_selfdestruct_no_burn.py --fork Amsterdam

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 (Amsterdam) 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_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.