|
|
@ -189,7 +189,7 @@ export class VmDebuggerLogic { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.debugger.event.register('indexChanged', this, (index) => { |
|
|
|
this.debugger.event.register('indexChanged', this, async (index) => { |
|
|
|
if (index < 0) return |
|
|
|
if (index < 0) return |
|
|
|
if (this.stepManager.currentStepIndex !== index) return |
|
|
|
if (this.stepManager.currentStepIndex !== index) return |
|
|
|
if (!this.storageResolver) return |
|
|
|
if (!this.storageResolver) return |
|
|
@ -201,11 +201,13 @@ export class VmDebuggerLogic { |
|
|
|
for (var k in this.addresses) { |
|
|
|
for (var k in this.addresses) { |
|
|
|
var address = this.addresses[k] |
|
|
|
var address = this.addresses[k] |
|
|
|
var storageViewer = new StorageViewer({ stepIndex: this.stepManager.currentStepIndex, tx: this.tx, address: address }, this.storageResolver, this._traceManager) |
|
|
|
var storageViewer = new StorageViewer({ stepIndex: this.stepManager.currentStepIndex, tx: this.tx, address: address }, this.storageResolver, this._traceManager) |
|
|
|
storageViewer.storageRange().then((result) => { |
|
|
|
try { |
|
|
|
storageJSON[address] = result |
|
|
|
storageJSON[address] = await storageViewer.storageRange() |
|
|
|
this.event.trigger('traceStorageUpdate', [storageJSON]) |
|
|
|
} catch (e) { |
|
|
|
}) |
|
|
|
console.error(e) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.event.trigger('traceStorageUpdate', [storageJSON]) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|