diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js
index 37de6debcc..be828f3c1d 100644
--- a/apps/remix-ide/src/app.js
+++ b/apps/remix-ide/src/app.js
@@ -371,8 +371,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
)
const analysis = new AnalysisTab(registry)
const debug = new DebuggerTab(
- blockchain,
- registry.get('editor').api,
+ blockchain,
+ registry.get('editor').api,
registry.get('offsettolinecolumnconverter').api)
const test = new TestTab(
registry.get('filemanager').api,
diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js
index fffb99dfaf..13bd7fea3b 100644
--- a/apps/remix-ide/src/app/tabs/debugger-tab.js
+++ b/apps/remix-ide/src/app/tabs/debugger-tab.js
@@ -22,7 +22,6 @@ const profile = {
}
class DebuggerTab extends ViewPlugin {
-
constructor (blockchain, editor, offsetToLineColumnConverter) {
super(profile)
this.el = null
@@ -106,27 +105,22 @@ class DebuggerTab extends ViewPlugin {
async getTrace (hash) {
if (!hash) return
- try {
- const web3 = await this.getDebugWeb3()
- const currentReceipt = await web3.eth.getTransactionReceipt(hash)
- const debug = new Debugger({
- web3,
- offsetToLineColumnConverter: this.offsetToLineColumnConverter,
- compilationResult: async (address) => {
- try {
- return await this.fetchContractAndCompile(address, currentReceipt)
- } catch (e) {
- console.error(e)
- }
- return null
- },
- debugWithGeneratedSources: false
- })
-
- return await debug.debugger.traceManager.getTrace(hash)
- } catch (e) {
- throw e
- }
+ const web3 = await this.getDebugWeb3()
+ const currentReceipt = await web3.eth.getTransactionReceipt(hash)
+ const debug = new Debugger({
+ web3,
+ offsetToLineColumnConverter: this.offsetToLineColumnConverter,
+ compilationResult: async (address) => {
+ try {
+ return await this.fetchContractAndCompile(address, currentReceipt)
+ } catch (e) {
+ console.error(e)
+ }
+ return null
+ },
+ debugWithGeneratedSources: false
+ })
+ return await debug.debugger.traceManager.getTrace(hash)
}
fetchContractAndCompile (address, receipt) {
diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js
index cd46b1db77..fa80351b8a 100644
--- a/apps/remix-ide/src/app/tabs/test-tab.js
+++ b/apps/remix-ide/src/app/tabs/test-tab.js
@@ -34,7 +34,7 @@ module.exports = class TestTab extends ViewPlugin {
this.readyTestsNumber = 0
this.areTestsRunning = false
this.defaultPath = 'browser/tests'
- this.offsetToLineColumnConverter = offsetToLineColumnConverter
+ this.offsetToLineColumnConverter = offsetToLineColumnConverter
appManager.event.on('activate', (name) => {
if (name === 'solidity') this.updateRunAction()
diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js
index 6bd9668419..8f82ceb911 100644
--- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js
+++ b/apps/remix-ide/src/app/ui/landing-page/landing-page.js
@@ -339,7 +339,7 @@ export class LandingPage extends ViewPlugin {
document.location.reload()
}
const img = yo``
- let playRemi = async () => { await document.getElementById('remiAudio').play() }
+ const playRemi = async () => { await document.getElementById('remiAudio').play() }
// to retrieve medium posts
document.body.appendChild(yo``)
const container = yo`