Skip to content

Commit

Permalink
docs: clarify None nonce (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Mar 16, 2024
1 parent 628729c commit 609236e
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 609236e

Please sign in to comment.