Skip to content

Test Gas Accounting

Documentation for tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_gas_accounting.py@2119b382.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_gas_accounting.py --fork Amsterdam

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_mixed_gas_regimes blockchain_test 1 Lock in block-level gas accounting across a block where each tx hits a
test_multi_transaction_gas_accounting blockchain_test 16 Test block gas accounting with refunds per EIP-7778.
test_multiple_refund_types_in_one_tx blockchain_test 2 Test gas accounting for all refund types available in the given fork.
test_simple_gas_accounting blockchain_test 2 Test gas accounting for all refund types available in the given fork.
test_varying_calldata_costs blockchain_test 5 Test by varying the calldata_floor_cost.