diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index f333ebc7eb..624f0a268b 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -434,9 +434,9 @@ class Terminal extends Plugin { self.commands.html(intro) self._components.txLogger = new TxLogger(this, self.blockchain) - self._components.txLogger.event.register('debuggingRequested', (hash) => { + self._components.txLogger.event.register('debuggingRequested', async (hash) => { // TODO should probably be in the run module - if (!self._opts.appManager.isActive('debugger')) self._opts.appManager.activatePlugin('debugger') + if (!await self._opts.appManager.isActive('debugger')) await self._opts.appManager.activatePlugin('debugger') this.call('debugger', 'debug', hash) this.call('menuicons', 'select', 'debugger') }) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 62d10fe28b..7f42a62a8b 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -225,9 +225,9 @@ module.exports = class TestTab extends ViewPlugin { return this.generateFileActionElement } - updateRunAction (currentFile) { + async updateRunAction (currentFile) { let el = yo`` - const isSolidityActive = this.appManager.isActive('solidity') + const isSolidityActive = await this.appManager.isActive('solidity') if (!currentFile || !isSolidityActive) { el.setAttribute('disabled', 'disabled') if (!currentFile) el.setAttribute('title', 'No file selected')