From 373e3741cfe2a3d7609e7d25ea9200f2839281a5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 3 Jul 2018 22:04:36 +0200 Subject: [PATCH] fix references --- src/app/tabs/run-tab.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index c00791a597..808be10e2d 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -252,10 +252,8 @@ function makeRecorder (registry, runTabEvent, self) { update account address in scenario.json popup if scenario.json not open - "Open a file with transactions you want to replay and click play again" */ - var currentFile = self._deps.config.get('currentFile').api - var udappUI = self._deps.config.get('udappUI').api - var fileManager = self._deps.config.get('fileManager').api - fileManager.fileProviderOf(currentFile).get(currentFile, (error, json) => { + var currentFile = self._deps.config.get('currentFile') + self._deps.fileManager.fileProviderOf(currentFile).get(currentFile, (error, json) => { if (error) { modalDialogCustom.alert('Invalid Scenario File ' + error) } else { @@ -274,7 +272,7 @@ function makeRecorder (registry, runTabEvent, self) { var noInstancesText = self._view.noInstancesText if (noInstancesText.parentNode) { noInstancesText.parentNode.removeChild(noInstancesText) } recorder.run(txArray, accounts, options, abis, linkReferences, self._deps.udapp, (abi, address, contractName) => { - self._view.instanceContainer.appendChild(udappUI.renderInstanceFromABI(abi, address, contractName)) + self._view.instanceContainer.appendChild(self._deps.udappUI.renderInstanceFromABI(abi, address, contractName)) }) } } else {