Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/eth/EthRpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,12 @@ class EthRPC {
.sendSignedTransaction(rawTx)
.once('transactionHash', resolve)
.once('error', reject)
.catch(err => reject(err));
.catch((err) => {
if (err.message.includes('nonce')) {
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

Fixed

err.conclusive = true;
}
reject(err);
});
});
}

Expand Down