test_create_tx_collision_refunds_reservoir()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_tx_collision_refunds_reservoir@5c024cbb.
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_tx_collision_refunds_reservoir --fork Amsterdam
Verify the state-gas reservoir is refunded on a depth-0 CREATE-tx
address collision when gas_limit > TX_MAX_GAS_LIMIT.
EIP-8037 splits gas_limit into the capped regular budget and a
state-gas reservoir. On collision the inner regular gas is burnt
and intrinsic_state_gas is refunded; the reservoir must also
be refunded to the sender. header.gas_used is fixed at the
regular cap regardless of reservoir handling, so the sender's
post-balance is the primary discriminating assertion.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.