From a5160fc341439bf0ecbcffaee688f4f190ca249b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 31 Dec 2019 11:46:21 -0500 Subject: [PATCH] replace executionContext for debugger with blockchain object --- src/app.js | 2 +- src/app/tabs/debugger-tab.js | 6 +++--- src/app/tabs/debugger/debuggerUI.js | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app.js b/src/app.js index e81e07f3f7..28568a366b 100644 --- a/src/app.js +++ b/src/app.js @@ -306,7 +306,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org mainview ) const analysis = new AnalysisTab(registry) - const debug = new DebuggerTab(executionContext) + const debug = new DebuggerTab(blockchain) const test = new TestTab( registry.get('filemanager').api, filePanel, diff --git a/src/app/tabs/debugger-tab.js b/src/app/tabs/debugger-tab.js index d86db9aef5..ff636f8a7c 100644 --- a/src/app/tabs/debugger-tab.js +++ b/src/app/tabs/debugger-tab.js @@ -21,10 +21,10 @@ const profile = { class DebuggerTab extends ViewPlugin { - constructor (executionContext) { + constructor (blockchain) { super(profile) this.el = null - this.executionContext = executionContext + this.blockchain = blockchain } render () { @@ -34,7 +34,7 @@ class DebuggerTab extends ViewPlugin {
` - this.debuggerUI = new DebuggerUI(this.el.querySelector('#debugger'), this.executionContext) + this.debuggerUI = new DebuggerUI(this.el.querySelector('#debugger'), this.blockchain) return this.el } diff --git a/src/app/tabs/debugger/debuggerUI.js b/src/app/tabs/debugger/debuggerUI.js index d30f32b5b9..5b199e045b 100644 --- a/src/app/tabs/debugger/debuggerUI.js +++ b/src/app/tabs/debugger/debuggerUI.js @@ -30,9 +30,9 @@ var css = csjs` class DebuggerUI { - constructor (container, executionContext) { + constructor (container, blockchain) { this.registry = globalRegistry - this.executionContext = executionContext + this.blockchain = blockchain this.event = new EventManager() this.isActive = false @@ -105,13 +105,13 @@ class DebuggerUI { getDebugWeb3 () { return new Promise((resolve, reject) => { - this.executionContext.detectNetwork((error, network) => { + this.blockchain.detectNetwork((error, network) => { let web3 if (error || !network) { - web3 = init.web3DebugNode(this.executionContext.web3()) + web3 = init.web3DebugNode(this.blockchain.web3()) } else { const webDebugNode = init.web3DebugNode(network.name) - web3 = !webDebugNode ? this.executionContext.web3() : webDebugNode + web3 = !webDebugNode ? this.blockchain.web3() : webDebugNode } init.extendWeb3(web3) resolve(web3)