From dbd9174669b9e34ae39a4e5a4f6351d976bdb84d Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 30 Dec 2019 14:43:18 -0500 Subject: [PATCH] extra confirmation dialog out of udapp-ui --- src/app/udapp/run-tab.js | 2 +- src/app/ui/universal-dapp-ui.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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: {}}