|
|
|
@ -104,9 +104,8 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getTrace (hash) { |
|
|
|
|
async getTrace (hash) { |
|
|
|
|
if (!hash) return |
|
|
|
|
return new Promise(async (resolve, reject) => { /* eslint-disable-line */ |
|
|
|
|
try { |
|
|
|
|
const web3 = await this.getDebugWeb3() |
|
|
|
|
const currentReceipt = await web3.eth.getTransactionReceipt(hash) |
|
|
|
@ -124,11 +123,10 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
|
debugWithGeneratedSources: false |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
resolve(await debug.debugger.traceManager.getTrace(hash))
|
|
|
|
|
return await debug.debugger.traceManager.getTrace(hash) |
|
|
|
|
} catch (e) { |
|
|
|
|
reject(e) |
|
|
|
|
throw e |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fetchContractAndCompile (address, receipt) { |
|
|
|
|