Commit 6f5f5622 authored by yann300's avatar yann300

fix storage

parent 5f3ffaa3
...@@ -88,12 +88,11 @@ TraceManager.prototype.getStorageAt = function (stepIndex, tx, callback, address ...@@ -88,12 +88,11 @@ TraceManager.prototype.getStorageAt = function (stepIndex, tx, callback, address
if (this.traceRetriever.debugStorageAtAvailable()) { if (this.traceRetriever.debugStorageAtAvailable()) {
this.traceRetriever.getStorage(tx, address, function (error, result) { this.traceRetriever.getStorage(tx, address, function (error, result) {
if (error) { if (error) {
console.log(error) // TODO throws proper error when debug_storageRangeAt will be available
callback(error, null) result = {}
} else { }
var storage = self.traceCache.rebuildStorage(address, result, stepIndex) var storage = self.traceCache.rebuildStorage(address, result, stepIndex)
callback(null, storage) callback(null, storage)
}
}) })
} else { } else {
callback(null, this.trace[stoChange].storage) callback(null, this.trace[stoChange].storage)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment