Commit 7bd9b3fa authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #212 from ethereum/fixsStorage

Fix storage (using geth)
parents 5f3ffaa3 c8e41b06
......@@ -88,12 +88,12 @@ TraceManager.prototype.getStorageAt = function (stepIndex, tx, callback, address
if (this.traceRetriever.debugStorageAtAvailable()) {
this.traceRetriever.getStorage(tx, address, function (error, result) {
if (error) {
// TODO throws proper error when debug_storageRangeAt will be available
console.log(error)
callback(error, null)
} else {
var storage = self.traceCache.rebuildStorage(address, result, stepIndex)
callback(null, storage)
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