From 73253dc8c7a1c3b20377610ecdf11a55a8bc45d1 Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Tue, 12 Mar 2024 14:58:58 +0100 Subject: [PATCH] docs: note behavior w 2 providers --- crates/providers/src/layers/nonce.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/providers/src/layers/nonce.rs b/crates/providers/src/layers/nonce.rs index 2865582319fa..972e61f1f048 100644 --- a/crates/providers/src/layers/nonce.rs +++ b/crates/providers/src/layers/nonce.rs @@ -17,7 +17,10 @@ use std::marker::PhantomData; /// /// # Note /// -/// If the transaction request does not have a sender set, this layer will not fill nonces. +/// - If the transaction request does not have a sender set, this layer will not fill nonces. +/// - Using two providers with their own nonce layer can potentially fill invalid nonces if +/// transactions are sent from the same address, as the next nonce to be used is cached internally +/// in the layer. /// /// # Example ///