test_create_collision_refunds_state_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_collision_refunds_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_create.py::test_create_collision_refunds_state_gas --fork Amsterdam
Verify CREATE/CREATE2 address collision refunds account state gas.
The collision path increments the factory nonce and burns the
forwarded regular gas (consumed by the never-spawned child), but
still refunds GAS_NEW_ACCOUNT to the reservoir. Tight gas
tuning limits the factory's post-collision 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
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.