test_initcode_selfdestruct_state_gas_in_header()¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py::test_initcode_selfdestruct_state_gas_in_header@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py::test_initcode_selfdestruct_state_gas_in_header --fork Amsterdam
The top-frame NEW_ACCOUNT surviving an init-code
SELFDESTRUCT stays in the state dimension after settlement.
Receipts and balances only observe the sum of the two gas
dimensions, so the sibling
test_initcode_selfdestruct_keeps_top_frame_state_charge cannot
distinguish which dimension the surviving charge settled into. The
block header can: gas_used = max(block_execution, block_state),
and with a zero endowment and a self beneficiary the whole created
account vanishes while the state side (one NEW_ACCOUNT,
dominating the small execution side) must still show in the header.
Bug signatures: a refill regression collapses the header to the
small execution sum; an execution-gas mis-classification raises it to
execution + NEW_ACCOUNT.
Source code in tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.