diff --git a/src/app/udapp/run-tab.js b/src/app/udapp/run-tab.js index f07d0d8c83..f9cfc583bc 100644 --- a/src/app/udapp/run-tab.js +++ b/src/app/udapp/run-tab.js @@ -49,7 +49,7 @@ export class RunTab extends LibraryPlugin { } onActivationInternal () { - this.udappUI = new UniversalDAppUI(this.udapp, this.logCallback, this.executionContext) + this.udappUI = new UniversalDAppUI(this.blockchain, this.udapp, this.logCallback, this.executionContext) this.udapp.resetAPI({ getAddress: (cb) => { cb(null, $('#txorigin').val()) diff --git a/src/app/ui/universal-dapp-ui.js b/src/app/ui/universal-dapp-ui.js index 0818b6006e..509bbb6874 100644 --- a/src/app/ui/universal-dapp-ui.js +++ b/src/app/ui/universal-dapp-ui.js @@ -15,7 +15,8 @@ var txFormat = remixLib.execution.txFormat var TreeView = require('./TreeView') var txCallBacks = require('./sendTxCallbacks') -function UniversalDAppUI (udapp, logCallback, executionContext) { +function UniversalDAppUI (blockchain, udapp, logCallback, executionContext) { + this.blockchain = blockchain this.udapp = udapp this.logCallback = logCallback this.compilerData = {contractsDetails: {}}