Skip to content

Test INVALID Tx

Documentation for tests/prague/eip7702_set_code_tx/test_invalid_tx.py@14a7429a.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7702_set_code_tx/test_invalid_tx.py --fork Prague
Tests invalid set-code transactions from EIP-7702: Set EOA account code for one transaction

Tests invalid set-code transactions from EIP-7702: Set EOA account code for one transaction.

Test Functions Overview

Name Type Cases (Prague) Description
test_empty_authorization_list transaction_test 1 Test sending a transaction with an empty authorization list.
test_invalid_auth_signature transaction_test 8 Test sending a transaction where one of the signature elements is out of range.
test_invalid_tx_invalid_auth_chain_id transaction_test 2 Test sending a transaction where the chain id field of an authorization overflows the
test_invalid_tx_invalid_auth_chain_id_encoding transaction_test 4 Test sending a transaction where the chain id field of an authorization has an incorrect
test_invalid_tx_invalid_nonce transaction_test 4 Test sending a transaction where the nonce field of an authorization overflows the maximum
test_invalid_tx_invalid_nonce_as_list transaction_test 6 Test sending a transaction where the nonce field of an authorization overflows the maximum
test_invalid_tx_invalid_nonce_encoding transaction_test 2 Test sending a transaction where the chain id field of an authorization has an incorrect
test_invalid_tx_invalid_address transaction_test 4 Test sending a transaction where the address field of an authorization is incorrectly
test_invalid_tx_invalid_authorization_tuple_extra_element transaction_test 4 Test sending a transaction where the authorization tuple field of the type-4 transaction
test_invalid_tx_invalid_authorization_tuple_missing_element transaction_test 12 Test sending a transaction where the authorization tuple field of the type-4 transaction
test_invalid_tx_invalid_authorization_tuple_encoded_as_bytes transaction_test 2 Test sending a transaction where the authorization tuple field of the type-4 transaction
test_invalid_tx_invalid_rlp_encoding transaction_test 4 Test sending a transaction type-4 where the RLP encoding of the transaction is