Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
event triggered to get full storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 5, 2019
1 parent d35ac4e commit 271124b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remix-debug/src/debugger/VmDebugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class VmDebuggerLogic {
if (index < 0) return
if (self.stepManager.currentStepIndex !== index) return
if (!self.storageResolver) return

if (index !== self.traceLength - 1) {
// Clean up storage update
if (index === self.traceLength - 1) {
return self.event.trigger('traceStorageUpdate', [{}])
}
var storageJSON = {}
Expand Down
1 change: 1 addition & 0 deletions remix-debug/src/debugger/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Debugger.prototype.debugTx = function (tx, loadingCb) {
self.debugger.codeManager.resolveStep(stepIndex, tx)
self.step_manager.event.trigger('indexChanged', [stepIndex])
self.vmDebuggerLogic.event.trigger('indexChanged', [stepIndex])
self.vmDebuggerLogic.debugger.event.trigger('indexChanged', [stepIndex])
self.registerAndHighlightCodeItem(stepIndex)
})

Expand Down

0 comments on commit 271124b

Please sign in to comment.