Test Intrinsic Gas Boundary¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_intrinsic_gas_boundary.py@5fa5938b.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_intrinsic_gas_boundary.py --fork Amsterdam
Gas-limit boundary tests for EIP-2780.
Pin transactions one gas below the intrinsic charge layer to verify the
transaction is rejected by the pre-execution intrinsic gas check at
that boundary. Top-frame boundary OOGs are covered by the dedicated
top-frame charge tests in test_top_frame_charges.py.
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_intrinsic_gas_floor_boundary |
state_test | 10 | Reject when gas_limit = intrinsic_gas - 1. |
test_intrinsic_gas_floor_boundary_contract_creation |
state_test | 2 | Reject a contract-creation transaction when |
test_intrinsic_gas_floor_boundary_with_authorizations |
state_test | 2 | Reject a type-4 transaction when gas_limit = intrinsic_gas - 1, |