Skip to content

Test Eip Mainnet

Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_eip_mainnet.py@5fa5938b.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_eip_mainnet.py --fork Amsterdam

Mainnet-marked happy-path smoke tests for EIP-8038: State Access Gas Cost Increase.

One minimal success per repriced dimension (no boundaries, no exact magnitudes): a state slot is written, a value-bearing cold CALL lands, an EXTCODESIZE runs, a CREATE deploys a contract, a SELFDESTRUCT funds a fresh account, a single 7702 authorization installs a delegation, and a re-authorization of an already-delegated authority applies the existing-authority refund. Gas limits are deliberately generous so these prove the operation runs under the EIP-8038 schedule without re-deriving any per-opcode cost (other files own those matrices).

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_auth_installs_delegation state_test 1 A single valid 7702 authorization pays the EIP-8038 auth
test_cold_call_with_value state_test 1 A value-bearing cold CALL pays COLD_ACCOUNT_ACCESS plus
test_create_deploys_contract state_test 1 A factory CREATEs a one-byte (STOP) contract under the
test_existing_authority_refund state_test 1 Re-authorizing an already-delegated authority applies the
test_extcodesize state_test 1 EXTCODESIZE pays the EIP-8038 account access plus the code-read
test_selfdestruct_funds_new_account state_test 1 A balance-bearing contract SELFDESTRUCTs to a fresh beneficiary
test_sstore_zero_to_nonzero state_test 1 A zero-to-nonzero SSTORE pays the EIP-8038 storage write and