Skip to content
This repository was archived by the owner on Aug 31, 2026. It is now read-only.

Makes nonce errors conclusive - #118

Open
SethMcGuire wants to merge 2 commits into
bitpay:masterfrom
SethMcGuire:feature/nonceConcluseiveErrors
Open

Makes nonce errors conclusive#118
SethMcGuire wants to merge 2 commits into
bitpay:masterfrom
SethMcGuire:feature/nonceConcluseiveErrors

Conversation

@SethMcGuire

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/eth/EthRpc.js Outdated
.once('error', reject)
.catch(err => reject(err));
.catch((err) => {
if (err.message.includes('nonce')) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe overkill, but could we be a bit more defensive and check for err.message as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants