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@622620d8.
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 execution 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
2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.