refactor: remove unnecessary level of depth from runInNode

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

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

Loading…
Cancel
Save