Skip to content

Test Value Moving Transactions

Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_value_moving_transactions.py@49633827.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_value_moving_transactions.py --fork Amsterdam

Tests for EIP-2780 Reduce Transaction Intrinsic Cost.

Test gas costs with EIP-2780 for value-moving transactions to: - EOAs, - contracts, - empty accounts, - the sender itself, - delegated EOAs, - newly created contracts, and - precompiles.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_intrinsic_decomposition_across_tx_types state_test 5 The decomposed intrinsic keys on the transaction's fields, not its
test_self_transfer_with_delegated_sender state_test 2 Gas for a self-transfer whose sender already holds a delegation.
test_value_contract_creation_tx state_test 4 Test value moving contract creation transactions.
test_value_move_to_precompiles state_test 72 Ensure value moving transactions to precompiles charge gas correctly.
test_value_moving_transactions state_test 10 Ensure value-moving transactions charge gas correctly across every