From 1d815f2019be63c3db99f98c0f6655ab0e4d7518 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 26 Dec 2018 11:04:50 -0500 Subject: [PATCH] pass global registry to udapp as an argument --- src/app.js | 2 +- src/universal-dapp.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app.js b/src/app.js index 03cc182d51..6ab4d8f2e4 100644 --- a/src/app.js +++ b/src/app.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) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index f757cf6cee..7faeec2a5f 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -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 = {}