Commit 1c7b325a authored by Iuri Matias's avatar Iuri Matias

refactor: remove unnecessary level of depth from runInNode

parent 9e3c8029
...@@ -155,7 +155,9 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -155,7 +155,9 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
tx.gas = gasEstimation tx.gas = gasEstimation
if (!self._api.config.getUnpersistedProperty('doNotShowTransactionConfirmationAgain')) { if (self._api.config.getUnpersistedProperty('doNotShowTransactionConfirmationAgain')) {
return executeTx(tx, null, self._api, callback)
}
self._api.detectNetwork((err, network) => { self._api.detectNetwork((err, network) => {
if (err) { if (err) {
console.log(err) console.log(err)
...@@ -183,9 +185,6 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -183,9 +185,6 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
} }
} }
}) })
} 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