test_create_collision_burned_gas_counted_in_block_execution()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_collision_burned_gas_counted_in_block_execution@636b5f17.
Generate fixtures for these test cases for Bogota with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_collision_burned_gas_counted_in_block_execution --fork Bogota
Verify gas burned by a CREATE/CREATE2 address collision counts toward block execution gas used in the header.
A REVERT after the collision returns the parent's own leftover gas but cannot un-burn the forwarded grant, so the block still bills it in the execution dimension. The collision target already exists, so no state charge is taken in either ending.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 2 forks.