|
|
|
@ -22,7 +22,6 @@ const profile = { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class DebuggerTab extends ViewPlugin { |
|
|
|
|
|
|
|
|
|
constructor (blockchain, editor, offsetToLineColumnConverter) { |
|
|
|
|
super(profile) |
|
|
|
|
this.el = null |
|
|
|
@ -106,7 +105,6 @@ 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({ |
|
|
|
@ -122,11 +120,7 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
|
}, |
|
|
|
|
debugWithGeneratedSources: false |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
return await debug.debugger.traceManager.getTrace(hash) |
|
|
|
|
} catch (e) { |
|
|
|
|
throw e |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fetchContractAndCompile (address, receipt) { |
|
|
|
|