event triggered to get full storage

pull/7/head
aniket-engg 5 years ago committed by Aniket
parent d35ac4ed46
commit 271124b013
  1. 4
      remix-debug/src/debugger/VmDebugger.js
  2. 1
      remix-debug/src/debugger/debugger.js

@ -169,8 +169,8 @@ class VmDebuggerLogic {
if (index < 0) return if (index < 0) return
if (self.stepManager.currentStepIndex !== index) return if (self.stepManager.currentStepIndex !== index) return
if (!self.storageResolver) return if (!self.storageResolver) return
// Clean up storage update
if (index !== self.traceLength - 1) { if (index === self.traceLength - 1) {
return self.event.trigger('traceStorageUpdate', [{}]) return self.event.trigger('traceStorageUpdate', [{}])
} }
var storageJSON = {} var storageJSON = {}

@ -128,6 +128,7 @@ Debugger.prototype.debugTx = function (tx, loadingCb) {
self.debugger.codeManager.resolveStep(stepIndex, tx) self.debugger.codeManager.resolveStep(stepIndex, tx)
self.step_manager.event.trigger('indexChanged', [stepIndex]) self.step_manager.event.trigger('indexChanged', [stepIndex])
self.vmDebuggerLogic.event.trigger('indexChanged', [stepIndex]) self.vmDebuggerLogic.event.trigger('indexChanged', [stepIndex])
self.vmDebuggerLogic.debugger.event.trigger('indexChanged', [stepIndex])
self.registerAndHighlightCodeItem(stepIndex) self.registerAndHighlightCodeItem(stepIndex)
}) })

Loading…
Cancel
Save