Skip to content

Commit

Permalink
docs: clarify None nonce (bluealloy#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and fubuloubu committed Apr 11, 2024
1 parent 24f21d2 commit 5a68d3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/primitives/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ pub struct TxEnv {
pub value: U256,
/// The data of the transaction.
pub data: Bytes,
/// The nonce of the transaction. If set to `None`, no checks are performed.
/// The nonce of the transaction.
///
/// Caution: If set to `None`, then nonce validation against the account's nonce is skipped: [InvalidTransaction::NonceTooHigh] and [InvalidTransaction::NonceTooLow]
pub nonce: Option<u64>,

/// The chain ID of the transaction. If set to `None`, no checks are performed.
Expand Down

0 comments on commit 5a68d3d

Please sign in to comment.