Skip to content

Test State Gas Delegation Pointer

Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_delegation_pointer.py@c74f1a67.

Generate fixtures for these test cases for Amsterdam with:

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

Test state gas behavior when calling via 7702 delegation pointer vs direct.

Under EIP-8037, calling a contract that has a 7702 delegation pointer should charge the same state gas as calling the target directly. The delegation resolution is transparent to gas accounting.

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_delegation_pointer_new_account_state_gas state_test 1 Test delegation pointer CALL to empty account charges new-account gas.
test_sstore_direct_call_same_contract state_test 1 Test SSTORE state gas charged when calling the contract directly.
test_sstore_via_delegation_pointer state_test 1 Test SSTORE state gas charged when called via delegation pointer.