test_create_code_deposit_oog_refunds_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_code_deposit_oog_refunds_state_gas@a9abd46e.
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_code_deposit_oog_refunds_state_gas --fork Amsterdam
Verify CREATE/CREATE2 code-deposit OOG refunds account state gas.
The initcode executes successfully and returns code longer than
MAX_CODE_SIZE, triggering an exceptional halt during code
deposit. Tight gas tuning limits the factory's post-halt
gas_left so the probe SSTORE can only succeed via the
refunded reservoir, not by spilling state gas from gas_left.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.