Skip to content

Test State Gas Calldata Floor

Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py@5c024cbb.

Generate fixtures for these test cases for Amsterdam with:

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

Test EIP-7623 calldata floor interaction with EIP-8037 state gas.

The calldata floor applies to the regular gas dimension only. It does not affect state gas. Block gas accounting applies the floor to the regular dimension (max(pre_refund_gas - state_gas, floor)), so a transaction contributes at least the floor to the block's regular gas while state gas is tracked separately.

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_calldata_floor_applied_to_sender_refund blockchain_test 1 Verify the calldata floor is applied to the sender gas refund.
test_calldata_floor_binds_with_reservoir state_test 1 Bind the calldata floor while an over-cap reservoir funds state gas.
test_calldata_floor_counts_toward_block_gas state_test 1 Verify the calldata floor is charged to the block's regular gas.
test_calldata_floor_exceeding_tx_gas_limit_cap state_test 2 Reject a transaction whose calldata floor exceeds the cap, isolating
test_calldata_floor_higher_than_execution_with_state_ops state_test 1 Test state gas is tracked separately when calldata floor dominates.
test_calldata_floor_independent_of_state_gas state_test 1 Test calldata floor applies only to regular gas dimension.
test_calldata_floor_not_discounted_by_state_gas state_test 1 Verify state gas spending does not discount the block-level floor.
test_calldata_floor_with_sstore state_test 1 Test calldata floor does not affect state gas charging.