From 271124b013dadcb0dfcecd7749ea36beca9c1158 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 4 Dec 2019 19:19:53 +0530 Subject: [PATCH] event triggered to get full storage --- remix-debug/src/debugger/VmDebugger.js | 4 ++-- remix-debug/src/debugger/debugger.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/remix-debug/src/debugger/VmDebugger.js b/remix-debug/src/debugger/VmDebugger.js index 51c93bb0c4..1ec8029e23 100644 --- a/remix-debug/src/debugger/VmDebugger.js +++ b/remix-debug/src/debugger/VmDebugger.js @@ -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 = {} diff --git a/remix-debug/src/debugger/debugger.js b/remix-debug/src/debugger/debugger.js index d7813c6fa1..4f5f5f92c7 100644 --- a/remix-debug/src/debugger/debugger.js +++ b/remix-debug/src/debugger/debugger.js @@ -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) })