pass global registry to udapp as an argument

pull/3094/head
Iuri Matias 6 years ago committed by yann300
parent 41f25a7d02
commit 23cf3d6c4e
  1. 2
      src/app.js
  2. 4
      src/universal-dapp.js

@ -313,7 +313,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
registry.put({api: self._components.compilersArtefacts, name: 'compilersartefacts'})
// ----------------- UniversalDApp -----------------
var udapp = new UniversalDApp()
var udapp = new UniversalDApp(registry)
registry.put({api: udapp, name: 'udapp'})
var udappUI = new UniversalDAppUI(udapp)

@ -12,9 +12,7 @@ var txHelper = remixLib.execution.txHelper
var EventManager = remixLib.EventManager
var executionContext = remixLib.execution.executionContext
var globalRegistry = require('./global/registry')
function UniversalDApp () {
function UniversalDApp (globalRegistry) {
this.event = new EventManager()
var self = this
self.data = {}

Loading…
Cancel
Save