Commit 6f5f5622 authored by yann300's avatar yann300

fix storage

parent 5f3ffaa3
......@@ -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 {
// 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)
......
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