Skip to content

Test Nonce Reaching Max

Documentation for tests/frontier/eip2681_limit_account_nonce/test_nonce_reaching_max.py@ca7cac5c.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/frontier/eip2681_limit_account_nonce/test_nonce_reaching_max.py --fork Amsterdam

Tests that reaching the maximum account nonce (2**64 - 1) during execution is valid.

Per EIP-2681 only a transaction whose nonce is 2**64 - 1 is invalid; merely incrementing an account to that value while executing a transaction is permitted.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_set_code_self_authorization_reaching_nonce_max state_test 1 Test a self-sponsored set-code transaction whose authorization bumps the
test_tx_at_nonce_max_minus_one_call state_test 1 Test that a top-level CALL transaction from a sender at the highest usable
test_tx_at_nonce_max_minus_one_create state_test 1 Test that a top-level CREATE transaction from a sender at the highest