add todos for later

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent e693a4cd06
commit e90b97c2a1
  1. 2
      src/app.js
  2. 3
      src/universal-dapp.js

@ -314,6 +314,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// ----------------- UniversalDApp -----------------
var udapp = new UniversalDApp(registry.get('config').api)
// TODO: to remove when possible
registry.put({api: udapp, name: 'udapp'})
udapp.event.register('transactionBroadcasted', (txhash, networkName) => {
var txLink = executionContext.txDetailsLink(networkName, txhash)
@ -321,6 +322,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
})
var udappUI = new UniversalDAppUI(udapp, registry)
// TODO: to remove when possible
registry.put({api: udappUI, name: 'udappUI'})
// ----------------- Tx listener -----------------

@ -40,8 +40,11 @@ UniversalDApp.prototype.resetEnvironment = function () {
this._addAccount('71975fbf7fe448e004ac7ae54cad0a383c3906055a65468714156a07385e96ce', '0x56BC75E2D63100000')
executionContext.vm().stateManager.cache.flush(function () {})
}
// TODO: most params here can be refactored away in txRunner
this.txRunner = new TxRunner(this.accounts, {
// TODO: only used to check value of doNotShowTransactionConfirmationAgain property
config: this.config,
// TODO: to refactor, TxRunner already has access to executionContext
detectNetwork: (cb) => {
executionContext.detectNetwork(cb)
},

Loading…
Cancel
Save