add callback

pull/3094/head
yann300 7 years ago
parent 16a3ca6ba6
commit 6243787951
  1. 4
      src/app/execution/txRunner.js

@ -124,7 +124,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
tx.gas = !gasEstimation ? gasLimit : gasEstimation tx.gas = !gasEstimation ? gasLimit : gasEstimation
if (self._api.config.getUnpersistedProperty('doNotShowTransactionConfirmationAgain')) { if (self._api.config.getUnpersistedProperty('doNotShowTransactionConfirmationAgain')) {
return executeTx(tx, null, self._api, callback) return executeTx(tx, null, self._api, promptCb, callback)
} }
self._api.detectNetwork((err, network) => { self._api.detectNetwork((err, network) => {
@ -134,7 +134,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
} }
confirmCb(network, tx, tx.gas, (gasPrice) => { confirmCb(network, tx, tx.gas, (gasPrice) => {
return executeTx(tx, gasPrice, self._api, callback) return executeTx(tx, gasPrice, self._api, promptCb, callback)
}, (error) => { }, (error) => {
callback(error) callback(error)
}) })

Loading…
Cancel
Save