|
|
@ -22,7 +22,6 @@ const profile = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class DebuggerTab extends ViewPlugin { |
|
|
|
class DebuggerTab extends ViewPlugin { |
|
|
|
|
|
|
|
|
|
|
|
constructor (blockchain, editor, offsetToLineColumnConverter) { |
|
|
|
constructor (blockchain, editor, offsetToLineColumnConverter) { |
|
|
|
super(profile) |
|
|
|
super(profile) |
|
|
|
this.el = null |
|
|
|
this.el = null |
|
|
@ -106,7 +105,6 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
|
|
|
|
|
|
|
|
async getTrace (hash) { |
|
|
|
async getTrace (hash) { |
|
|
|
if (!hash) return |
|
|
|
if (!hash) return |
|
|
|
try { |
|
|
|
|
|
|
|
const web3 = await this.getDebugWeb3() |
|
|
|
const web3 = await this.getDebugWeb3() |
|
|
|
const currentReceipt = await web3.eth.getTransactionReceipt(hash) |
|
|
|
const currentReceipt = await web3.eth.getTransactionReceipt(hash) |
|
|
|
const debug = new Debugger({ |
|
|
|
const debug = new Debugger({ |
|
|
@ -122,11 +120,7 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
}, |
|
|
|
}, |
|
|
|
debugWithGeneratedSources: false |
|
|
|
debugWithGeneratedSources: false |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return await debug.debugger.traceManager.getTrace(hash) |
|
|
|
return await debug.debugger.traceManager.getTrace(hash) |
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
throw e |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fetchContractAndCompile (address, receipt) { |
|
|
|
fetchContractAndCompile (address, receipt) { |
|
|
|