Skip to content

Test Gas Accounting

Documentation for tests/amsterdam/eip7778_block_gas_accounting_without_refunds/test_gas_accounting.py@b314d18e.

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.gas_used == sum_i max(pre_refund_i, floor_i) across a
test_multi_transaction_gas_accounting blockchain_test 32 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 4 Test gas accounting for all refund types available in the given fork.
test_varying_calldata_costs blockchain_test 11 Test by varying the calldata_floor_cost.