test_create_onto_alive_skips_new_account_charge()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_onto_alive_skips_new_account_charge@8acae1b0.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_onto_alive_skips_new_account_charge --fork Amsterdam
Verify CREATE2 skips the NEW_ACCOUNT charge for an alive target.
A pre-funded, code-less target is alive but remains deployable. The transaction budget includes the static NEW_ACCOUNT estimate; because runtime must skip that charge, the unused gas lets the following SSTORE succeed. Charging NEW_ACCOUNT incorrectly consumes that headroom and prevents the storage probe.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.