Commit 8c7f3db8 authored by yann300's avatar yann300

add callback

parent db51a55f
...@@ -124,7 +124,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -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 ...@@ -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)
}) })
......
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