Skip to content

Commit

Permalink
Fixed EtherscanProvider NONCE_EXPIRED matching string update.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 2, 2021
1 parent bac684c commit ecae793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/etherscan-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function checkError(method: string, error: any, transaction: any): any {
}

// "Transaction with the same hash was already imported."
if (message.match(/same hash was already imported|transaction nonce is too low/)) {
if (message.match(/same hash was already imported|transaction nonce is too low|nonce too low/)) {
logger.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
error, method, transaction
});
Expand Down

0 comments on commit ecae793

Please sign in to comment.