Skip to content

Test Block Access Lists EIP-7702

Documentation for tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_eip7702.py@892e6d1e.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_eip7702.py --fork Amsterdam

Tests for the effects of EIP-7702 transactions on EIP-7928.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_bal_7702_cross_tx_delegation_then_call blockchain_test 1 Verify clients apply Tx1's EIP-7702 delegation before later txs CALL
test_bal_7702_delegated_create blockchain_test 2 BAL tracks EIP-7702 delegation indicator write and contract creation.
test_bal_7702_delegated_storage_access blockchain_test 1 Ensure BAL captures storage operations when calling a delegated
test_bal_7702_delegated_via_call_opcode blockchain_test 4 Ensure BAL captures delegation target when a contract uses *CALL
test_bal_7702_delegation_clear blockchain_test 2 Ensure BAL captures clearing of EOA delegation.
test_bal_7702_delegation_create blockchain_test 2 Ensure BAL captures creation of EOA delegation.
test_bal_7702_delegation_update blockchain_test 2 Ensure BAL captures update of existing EOA delegation.
test_bal_7702_double_auth_reset blockchain_test 2 Ensure BAL captures the net code change when multiple authorizations
test_bal_7702_double_auth_swap blockchain_test 1 Ensure BAL captures the net code change when double auth swaps
test_bal_7702_invalid_authority_has_code_authorization blockchain_test 1 Ensure BAL handles failed authorization where the authority already has
test_bal_7702_invalid_chain_id_authorization blockchain_test 1 Ensure BAL handles failed authorization due to wrong chain id.
test_bal_7702_invalid_nonce_authorization blockchain_test 1 Ensure BAL handles failed authorization due to wrong nonce.
test_bal_7702_multi_hop_delegation_chain blockchain_test 2 Multi-hop EIP-7702 delegation: chain resolves A->B->C; loop
test_bal_7702_null_address_delegation_no_code_change blockchain_test 1 Ensure BAL does not record spurious code changes when delegating to
test_bal_selfdestruct_to_7702_delegation blockchain_test 1 Test BAL with SELFDESTRUCT to 7702 delegated account.
test_bal_withdrawal_to_7702_delegation blockchain_test 1 Test BAL with withdrawal to 7702 delegated account.