_handleSendError fix
This commit is contained in:
parent
c5e4d76dc5
commit
780df01b43
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tx-manager",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -268,8 +268,8 @@ class Transaction {
|
||||
}
|
||||
|
||||
_handleSendError(e) {
|
||||
if (e.code === 'SERVER_ERROR' && e.error) {
|
||||
const message = e.error.message
|
||||
if (e.error && e.error.code === 'SERVER_ERROR') {
|
||||
const message = e.error.error.message
|
||||
|
||||
// nonce is too low, trying to increase and resubmit
|
||||
if (this._hasError(message, nonceErrors)) {
|
||||
|
Loading…
Reference in New Issue
Block a user