From 0855d6e9f593515b639c10a3f65bad712c68221c Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 13 Apr 2022 16:51:17 -0400 Subject: [PATCH] Support new OpenEthereum NONCE_EXPIRED string (#2845, #2846). --- packages/providers/src.ts/json-rpc-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/providers/src.ts/json-rpc-provider.ts b/packages/providers/src.ts/json-rpc-provider.ts index a67ef6444..7cc57bb80 100644 --- a/packages/providers/src.ts/json-rpc-provider.ts +++ b/packages/providers/src.ts/json-rpc-provider.ts @@ -84,7 +84,7 @@ function checkError(method: string, error: any, params: any): any { } // "nonce too low" - if (message.match(/nonce too low/)) { + if (message.match(/nonce (is )?too low/)) { logger.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, { error, method, transaction });