|
|
|
@ -163,7 +163,9 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal |
|
|
|
|
console.log(err) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (network.name === 'Main') { |
|
|
|
|
if (network.name !== 'Main') { |
|
|
|
|
return executeTx(tx, null, self._api, callback) |
|
|
|
|
} |
|
|
|
|
var content = confirmDialog(tx, gasEstimation, self) |
|
|
|
|
modalDialog('Confirm transaction', content, |
|
|
|
|
{ label: 'Confirm', |
|
|
|
@ -181,9 +183,6 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal |
|
|
|
|
return callback('Transaction canceled by user.') |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
executeTx(tx, null, self._api, callback) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|