test_nonce_validity()¶
Documentation for tests/prague/eip7702_set_code_tx/test_set_code_txs.py::test_nonce_validity@e9958ed2.
Generate fixtures for these test cases for Osaka with:
fill -v tests/prague/eip7702_set_code_tx/test_set_code_txs.py::test_nonce_validity --fork Osaka
Test sending a transaction where the nonce field of an authorization almost overflows the maximum value.
Also test calling the account of the authorization signer in order to verify that the account is not warm.
Source code in tests/prague/eip7702_set_code_tx/test_set_code_txs.py
2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 | |
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
| Test ID (Abbreviated) | account_nonce | authorization_nonce |
|---|---|---|
| ...fork_Prague-state_test-nonce=2**64-1 | 18446744073709551615 | 18446744073709551615 |
| ...fork_Prague-state_test-nonce=2**64-2 | 18446744073709551614 | 18446744073709551614 |
| ...fork_Prague-state_test-nonce=1,account_nonce=0 | 0 | 1 |
| ...fork_Prague-state_test-nonce=0,account_nonce=1 | 1 | 0 |
| ...fork_Prague-blockchain_test_from_state_test-nonce=2**64-1 | 18446744073709551615 | 18446744073709551615 |
| ...fork_Prague-blockchain_test_from_state_test-nonce=2**64-2 | 18446744073709551614 | 18446744073709551614 |
| ...fork_Prague-blockchain_test_from_state_test-nonce=1,account_nonce=0 | 0 | 1 |
| ...fork_Prague-blockchain_test_from_state_test-nonce=0,account_nonce=1 | 1 | 0 |
| ...fork_Osaka-state_test-nonce=2**64-1 | 18446744073709551615 | 18446744073709551615 |
| ...fork_Osaka-state_test-nonce=2**64-2 | 18446744073709551614 | 18446744073709551614 |
| ...fork_Osaka-state_test-nonce=1,account_nonce=0 | 0 | 1 |
| ...fork_Osaka-state_test-nonce=0,account_nonce=1 | 1 | 0 |
| ...fork_Osaka-blockchain_test_from_state_test-nonce=2**64-1 | 18446744073709551615 | 18446744073709551615 |
| ...fork_Osaka-blockchain_test_from_state_test-nonce=2**64-2 | 18446744073709551614 | 18446744073709551614 |
| ...fork_Osaka-blockchain_test_from_state_test-nonce=1,account_nonce=0 | 0 | 1 |
| ...fork_Osaka-blockchain_test_from_state_test-nonce=0,account_nonce=1 | 1 | 0 |