Test SELFDESTRUCT No Burn¶
Documentation for tests/amsterdam/eip8246_selfdestruct_no_burn/test_selfdestruct_no_burn.py@5fa5938b.
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_create_transaction_initcode_selfdestruct |
state_test | 2 | Depth-0 creation-tx initcode SELFDESTRUCT keeps balance per EIP-8246. |
test_selfdestructing_initcode_preserves_balance |
blockchain_test | 432 | Same-tx SELFDESTRUCT preserves the victim's balance per EIP-8246. |