Test Burn Logs¶
Documentation for tests/amsterdam/eip7708_eth_transfer_logs/test_burn_logs.py@tests-bal@v5.7.0.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7708_eth_transfer_logs/test_burn_logs.py --fork Amsterdam
Tests for EIP-7708 Burn logs.
Tests for the Burn(address,uint256) log emitted when: - SELFDESTRUCT to self with nonzero balance - Account created and destroyed in the same transaction
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_finalization_burn_log_single_account_multiple_transfers |
state_test | 2 | Verify finalization emits a single Burn log summing multiple ETH transfers |
test_finalization_burn_logs |
state_test | 4 | Test Burn logs at finalization for post-selfdestruct balance. |
test_finalization_burn_logs_multi_account_ordering |
state_test | 2 | Verify finalization burn logs are sorted lexicographically by address |
test_selfdestruct_finalization_after_priority_fee |
blockchain_test | 2 | Verify finalization burn logs are emitted after priority fee payment. |
test_selfdestruct_same_tx_via_call |
state_test | 12 | Test selfdestruct via CREATE-then-CALL (not initcode selfdestruct). |
test_selfdestruct_to_different_address_same_tx |
state_test | 4 | Test same-tx selfdestruct to different address. |
test_selfdestruct_to_self_pre_existing_no_log |
state_test | 1 | Test that selfdestruct-to-self emits NO log for pre-existing contracts. |
test_selfdestruct_to_self_same_tx |
state_test | 4 | Test selfdestruct-to-self for same-tx created contracts. |