Commit dd62a3e5 authored by Iuri Matias's avatar Iuri Matias

refactor: remove unnecessary level of depth from runInNode

parent 1c7b325a
...@@ -161,7 +161,8 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -161,7 +161,8 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
self._api.detectNetwork((err, network) => { self._api.detectNetwork((err, network) => {
if (err) { if (err) {
console.log(err) console.log(err)
} else { return
}
if (network.name === 'Main') { if (network.name === 'Main') {
var content = confirmDialog(tx, gasEstimation, self) var content = confirmDialog(tx, gasEstimation, self)
modalDialog('Confirm transaction', content, modalDialog('Confirm transaction', content,
...@@ -183,7 +184,6 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -183,7 +184,6 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
} else { } else {
executeTx(tx, null, self._api, callback) 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