Skip to content

Commit

Permalink
Support new OpenEthereum NONCE_EXPIRED string (ethers-io#2845, ethers…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 90e6307 commit 9bbb751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/json-rpc-provider.ts
Original file line number Diff line number Diff line change
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 9bbb751

Please sign in to comment.