refactor: remove unnecessary level of depth from runInNode

pull/1/head
Iuri Matias 7 years ago
parent 9e3c80298f
commit 1c7b325a9b
  1. 7
      src/app/execution/txRunner.js

@ -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
} }
} }
}) })
} else {
executeTx(tx, null, self._api, callback)
}
}) })
} }

Loading…
Cancel
Save