test_create_account_creation_charge()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_create_account_creation_charge@ffe48572.
Generate fixtures for these test cases for Bogota with:
Verify NEW_ACCOUNT is charged only when the created account does not already exist in the trie.
Empty init code means zero code deposit, so NEW_ACCOUNT is the only create state cost. A fresh target is charged it; a pre-existing balance-only target (balance, no code, zero nonce) is not. The probe SSTORE both confirms the create succeeded and makes state gas dominate the header, so gas_used differs by exactly NEW_ACCOUNT between the two cases.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 2 forks.