_handleSendError fix
This commit is contained in:
parent
c5e4d76dc5
commit
780df01b43
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user