From 6f5f5622e19d4472ed7eb2c3d09c5d946a65e970 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 Mar 2017 14:02:40 +0100 Subject: [PATCH 1/2] fix storage --- src/trace/traceManager.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/trace/traceManager.js b/src/trace/traceManager.js index 8208844b70..03a682776c 100644 --- a/src/trace/traceManager.js +++ b/src/trace/traceManager.js @@ -88,12 +88,11 @@ TraceManager.prototype.getStorageAt = function (stepIndex, tx, callback, address if (this.traceRetriever.debugStorageAtAvailable()) { this.traceRetriever.getStorage(tx, address, function (error, result) { if (error) { - console.log(error) - callback(error, null) - } else { - var storage = self.traceCache.rebuildStorage(address, result, stepIndex) - callback(null, storage) + // TODO throws proper error when debug_storageRangeAt will be available + result = {} } + var storage = self.traceCache.rebuildStorage(address, result, stepIndex) + callback(null, storage) }) } else { callback(null, this.trace[stoChange].storage) From c8e41b06a0fff49329637281f56c11083dcf4714 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 Mar 2017 14:45:46 +0100 Subject: [PATCH 2/2] add log --- src/trace/traceManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/trace/traceManager.js b/src/trace/traceManager.js index 03a682776c..8dfc727a94 100644 --- a/src/trace/traceManager.js +++ b/src/trace/traceManager.js @@ -89,6 +89,7 @@ TraceManager.prototype.getStorageAt = function (stepIndex, tx, callback, address this.traceRetriever.getStorage(tx, address, function (error, result) { if (error) { // TODO throws proper error when debug_storageRangeAt will be available + console.log(error) result = {} } var storage = self.traceCache.rebuildStorage(address, result, stepIndex)