Skip to content

Test State Gas Fork Transition

Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_fork_transition.py@87aba1a3.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_fork_transition.py --fork Amsterdam

State gas fork transition tests for EIP-8037.

Verify that state gas pricing and the modified transaction validity constraint (tx.gas can exceed TX_MAX_GAS_LIMIT) activate correctly at the EIP-8037 fork boundary.

Before EIP-8037: no state gas dimension, tx.gas capped at TX_MAX_GAS_LIMIT (EIP-7825).

At/after EIP-8037: state gas charges apply, tx.gas above TX_MAX_GAS_LIMIT is valid (excess feeds the reservoir).

Tests for [EIP-8037: State Creation Gas Cost Increase] (https://eips.ethereum.org/EIPS/eip-8037).

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_reservoir_available_after_transition blockchain_test 1 Test reservoir is available for state ops after the fork.
test_sstore_state_gas_at_transition blockchain_test 1 Test SSTORE state gas activates at the EIP-8037 fork boundary.
test_tx_gas_above_cap_at_transition blockchain_test 2 Test tx.gas > TX_MAX_GAS_LIMIT validity at the EIP-8037 transition.