Skip to content

Commit

Permalink
Support new OpenEthereum NONCE_EXPIRED string (#2845, #2846).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 13, 2022
1 parent 948f770 commit 0855d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/json-rpc-provider.ts
Expand Up @@ -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
});
Expand Down

0 comments on commit 0855d6e

Please sign in to comment.