_handleSendError fix

This commit is contained in:
Alexey 2020-11-25 22:36:51 +01:00
parent c5e4d76dc5
commit 780df01b43
2 changed files with 3 additions and 3 deletions

@ -1,6 +1,6 @@
{ {
"name": "tx-manager", "name": "tx-manager",
"version": "0.2.7", "version": "0.2.8",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

@ -268,8 +268,8 @@ class Transaction {
} }
_handleSendError(e) { _handleSendError(e) {
if (e.code === 'SERVER_ERROR' && e.error) { if (e.error && e.error.code === 'SERVER_ERROR') {
const message = e.error.message const message = e.error.error.message
// nonce is too low, trying to increase and resubmit // nonce is too low, trying to increase and resubmit
if (this._hasError(message, nonceErrors)) { if (this._hasError(message, nonceErrors)) {