From 9fc75ef24578913e33b491916249565692e617ae Mon Sep 17 00:00:00 2001 From: Daniil Naumetc <11177808+kekonen@users.noreply.github.com> Date: Fri, 3 Dec 2021 18:08:53 +0000 Subject: [PATCH] Fix handling of `nonce too low` error (#643) * fix: nonce too low from error as debug * chore: cargo fmt Co-authored-by: Georgios Konstantopoulos --- ethers-providers/src/pending_escalator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-providers/src/pending_escalator.rs b/ethers-providers/src/pending_escalator.rs index e1893a4f..bbc45aea 100644 --- a/ethers-providers/src/pending_escalator.rs +++ b/ethers-providers/src/pending_escalator.rs @@ -142,7 +142,7 @@ macro_rules! poll_broadcast_fut { Poll::Ready(Err(e)) => { // kludge. Prevents erroring on "nonce too low" which indicates // a previous escalation confirmed during this broadcast attempt - if format!("{}", e).contains("nonce too low") { + if format!("{:?}", e).contains("nonce too low") { check_all_receipts!($cx, $this); } else { tracing::error!(