From 924acff44b8b0f8bd13861f3a164a028844944b1 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Sat, 9 Apr 2022 20:59:02 -0400 Subject: [PATCH] expand SignerMiddleware::new comment --- ethers-middleware/src/signer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ethers-middleware/src/signer.rs b/ethers-middleware/src/signer.rs index 192c8b8d46..0d1e787370 100644 --- a/ethers-middleware/src/signer.rs +++ b/ethers-middleware/src/signer.rs @@ -108,7 +108,10 @@ where { /// Creates a new client from the provider and signer. /// Sets the address of this middleware to the address of the signer. - /// The chain_id of the signer will not + /// The chain_id of the signer will not be set to the chain id of the provider. if the signer + /// passed here is initialized with a different chain id, then the client may throw errors, or + /// methods like `sign_transaction` may error. + /// To automatically set the signer's chain id, see `new_with_provider_chain`. /// /// [`Middleware`] ethers_providers::Middleware /// [`Signer`] ethers_signers::Signer