refactor: remove unnecessary level of depth from runInNode

pull/3094/head
Iuri Matias 7 years ago
parent 280a87bf76
commit 38f4ba1a52
  1. 7
      src/app/execution/txRunner.js

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

Loading…
Cancel
Save