|
|
|
@ -112,11 +112,7 @@ Ethdebugger.prototype.decodeStateAt = async function (step, stateVars, callback) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Ethdebugger.prototype.storageViewAt = function (step, address) { |
|
|
|
|
return new StorageViewer({ |
|
|
|
|
stepIndex: step, |
|
|
|
|
tx: this.tx, |
|
|
|
|
address: address |
|
|
|
|
}, this.storageResolver, this.traceManager) |
|
|
|
|
return new StorageViewer({stepIndex: step, tx: this.tx, address: address}, this.storageResolver, this.traceManager) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Ethdebugger.prototype.updateWeb3 = function (web3) { |
|
|
|
@ -134,21 +130,18 @@ Ethdebugger.prototype.debug = function (tx) { |
|
|
|
|
if (this.traceManager.isLoading) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (!tx.to) { |
|
|
|
|
tx.to = traceHelper.contractCreationToken('0') |
|
|
|
|
} |
|
|
|
|
tx.to = tx.to || traceHelper.contractCreationToken('0') |
|
|
|
|
this.tx = tx |
|
|
|
|
this.traceManager.resolveTrace(tx, async (error, result) => { |
|
|
|
|
if (result) { |
|
|
|
|
|
|
|
|
|
this.traceManager.resolveTrace(tx).then(async (result) => { |
|
|
|
|
this.setCompilationResult(await this.compilationResult(tx.to)) |
|
|
|
|
this.event.trigger('newTraceLoaded', [this.traceManager.trace]) |
|
|
|
|
if (this.breakpointManager && this.breakpointManager.hasBreakpoint()) { |
|
|
|
|
this.breakpointManager.jumpNextBreakpoint(false) |
|
|
|
|
} |
|
|
|
|
this.storageResolver = new StorageResolver({web3: this.traceManager.web3}) |
|
|
|
|
} else { |
|
|
|
|
}).catch((error) => { |
|
|
|
|
this.statusMessage = error ? error.message : 'Trace not loaded' |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|