Skip to content

Test Value Moving Transactions

Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_value_moving_transactions.py@5fa5938b.

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_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