test_selfdestruct_new_beneficiary_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_selfdestruct.py::test_selfdestruct_new_beneficiary_state_gas@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_selfdestruct.py::test_selfdestruct_new_beneficiary_state_gas --fork Amsterdam
Test SELFDESTRUCT to a non-existent beneficiary bills NEW_ACCOUNT.
A contract with nonzero balance self-destructs to a non-alive
beneficiary, charging new-account state gas. The charge is billed
identically whether drawn from the reservoir (out-of-cap tx) or
spilled into gas_left (in-cap tx): the block bills NEW_ACCOUNT in
the state dimension and the beneficiary is created.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_selfdestruct.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.