Commit adfdea8b authored by Iuri Matias's avatar Iuri Matias

refactor: remove unnecessary level of depth from runInNode

parent a5ef1510
...@@ -172,11 +172,10 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -172,11 +172,10 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
fn: () => { fn: () => {
self._api.config.setUnpersistedProperty('doNotShowTransactionConfirmationAgain', content.querySelector('input#confirmsetting').checked) self._api.config.setUnpersistedProperty('doNotShowTransactionConfirmationAgain', content.querySelector('input#confirmsetting').checked)
if (!content.gasPriceStatus) { if (!content.gasPriceStatus) {
callback('Given gas grice is not correct') return callback('Given gas grice is not correct')
} else { }
var gasPrice = executionContext.web3().toWei(content.querySelector('#gasprice').value, 'gwei') var gasPrice = executionContext.web3().toWei(content.querySelector('#gasprice').value, 'gwei')
executeTx(tx, gasPrice, self._api, callback) executeTx(tx, gasPrice, self._api, callback)
}
}}, { }}, {
label: 'Cancel', label: 'Cancel',
fn: () => { fn: () => {
......
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