Skip to content

Test Authorization Charges

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

Generate fixtures for these test cases for Amsterdam with:

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

Charge accounting for EIP-7702 authorizations under EIP-2780.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_account_write_authority_is_recipient state_test 2 An authority that is also tx.to pays ACCOUNT_WRITE only when
test_account_write_authority_is_sender state_test 1 An authority that is the transaction sender pays no
test_account_write_first_write_of_authority state_test 2 ACCOUNT_WRITE is charged on the first write to the authority
test_auth_base_net_new_only state_test 4 AUTH_BASE is charged only when a net-new delegation is set: the
test_multi_authorization_intra_tx_state state_test 4 Two authorizations in one transaction, charged against the state
test_single_authorization_charges state_test 6 A single authorization on a third-party authority, spanning the