refactor: remove unnecessary level of depth from runInNode

pull/1/head
Iuri Matias 7 years ago
parent a5ef151099
commit adfdea8b1b
  1. 5
      src/app/execution/txRunner.js

@ -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: () => {

Loading…
Cancel
Save