Skip to content

Commit 0855d6e

Browse files
committedApr 13, 2022
Support new OpenEthereum NONCE_EXPIRED string (#2845, #2846).

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/providers/src.ts/json-rpc-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function checkError(method: string, error: any, params: any): any {
8484
}
8585

8686
// "nonce too low"
87-
if (message.match(/nonce too low/)) {
87+
if (message.match(/nonce (is )?too low/)) {
8888
logger.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
8989
error, method, transaction
9090
});

0 commit comments

Comments
 (0)
Please sign in to comment.