|
|
@ -61,7 +61,8 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
(address, receipt) => { |
|
|
|
(address, receipt) => { |
|
|
|
const target = (address && remixLib.helpers.trace.isContractCreation(address)) ? receipt.contractAddress : address |
|
|
|
const target = (address && remixLib.helpers.trace.isContractCreation(address)) ? receipt.contractAddress : address |
|
|
|
return this.call('fetchAndCompile', 'resolve', target || receipt.contractAddress || receipt.to, '.debug', this.blockchain.web3()) |
|
|
|
return this.call('fetchAndCompile', 'resolve', target || receipt.contractAddress || receipt.to, '.debug', this.blockchain.web3()) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
this.call('manager', 'activatePlugin', 'source-verification') |
|
|
|
this.call('manager', 'activatePlugin', 'source-verification') |
|
|
|
// this.call('manager', 'activatePlugin', 'udapp')
|
|
|
|
// this.call('manager', 'activatePlugin', 'udapp')
|
|
|
@ -69,6 +70,11 @@ class DebuggerTab extends ViewPlugin { |
|
|
|
return this.el |
|
|
|
return this.el |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deactivate () { |
|
|
|
|
|
|
|
this.debuggerUI.unLoad() |
|
|
|
|
|
|
|
super.deactivate() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
debug (hash) { |
|
|
|
debug (hash) { |
|
|
|
if (this.debuggerUI) this.debuggerUI.debug(hash) |
|
|
|
if (this.debuggerUI) this.debuggerUI.debug(hash) |
|
|
|
} |
|
|
|
} |
|
|
|