test_creation_tx_failure_preserves_intrinsic_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_creation_tx_failure_preserves_intrinsic_state_gas@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py::test_creation_tx_failure_preserves_intrinsic_state_gas --fork Amsterdam
Regression test for the creation tx failure path.
A creation tx (to=None) whose initcode halts exercises both the
intrinsic state gas for the new account and the top level failure
refund of execution state gas. The test asserts the block header
gas_used equals max(block_regular, intrinsic_state_gas),
guarding that the failure path does not raise and that block
accounting does not underflow when the refund is applied.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_reservoir.py
843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.