Commit a5ef1510 authored by Iuri Matias's avatar Iuri Matias

refactor: remove unnecessary level of depth from runInNode

parent dd62a3e5
......@@ -163,7 +163,9 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
console.log(err)
return
}
if (network.name === 'Main') {
if (network.name !== 'Main') {
return executeTx(tx, null, self._api, callback)
}
var content = confirmDialog(tx, gasEstimation, self)
modalDialog('Confirm transaction', content,
{ label: 'Confirm',
......@@ -181,9 +183,6 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
return callback('Transaction canceled by user.')
}
})
} else {
executeTx(tx, null, self._api, callback)
}
})
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment