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@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_account_creation_charge --fork Amsterdam
Verify NEW_ACCOUNT is charged for a new account and refunded for a pre-existing balance-only leaf.
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) refunds it on success. The probe SSTORE both confirms the create succeeded and makes state gas dominate, so gas_used drops by exactly NEW_ACCOUNT when refunded.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.