Skip to content

Test Gas

Documentation for tests/prague/eip7702_set_code_tx/test_gas.py@f6ab9733.

Generate fixtures for these test cases for Prague with:

Prague only:

fill -v tests/prague/eip7702_set_code_tx/test_gas.py --fork=Prague --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Prague:

fill -v tests/prague/eip7702_set_code_tx/test_gas.py --until=Prague

Tests related to gas of set-code transactions from EIP-7702: Set EOA account code for one transaction

Tests related to gas of set-code transactions from EIP-7702: Set EOA account code for one transaction.

Test Functions Overview

Name Type Cases Description
test_gas_cost state_test 60 Test gas at the execution start of a set-code transaction in multiple scenarios.
test_account_warming state_test 108 Test warming of the authority and authorized accounts for set-code transactions.
test_intrinsic_gas_cost state_test 120 Test sending a transaction with the exact intrinsic gas required and also insufficient
test_self_set_code_cost state_test 4 Test set to code account access cost when it delegates to itself.