|
|
@ -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) |
|
|
|
}) |
|
|
|
}) |
|
|
|