Skip to content

Test Transaction Validity

Documentation for tests/amsterdam/eip7981_increase_access_list_cost/test_transaction_validity.py@02aafd78.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip7981_increase_access_list_cost/test_transaction_validity.py --fork Amsterdam

Tests for transaction validity with EIP-7981: Increase Access List Cost.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_access_list_sender_balance_boundary state_test 8 Fund the surcharged gas limit plus value exactly, or one wei short.
test_contract_creation_with_access_list state_test 4 Test the intrinsic boundary of a contract-creating transaction with
test_floor_cost_validation_with_access_list state_test 8 Reject a gas limit below the calldata floor plus the access list surcharge.
test_insufficient_gas_for_access_list state_test 12 Test that transactions with insufficient gas for access list costs
test_mixed_zero_nonzero_bytes_floor_cost state_test 6 Bill the floor with every calldata and access list byte at the floor
test_transactions_without_access_list state_test 5 Test that transactions without access lists still work correctly.
test_valid_gas_limits_with_access_list state_test 12 Test that transactions with sufficient gas are valid.