Merge pull request #212 from ethereum/fixsStorage

Fix storage (using geth)
pull/7/head
chriseth 8 years ago committed by GitHub
commit 7bd9b3fa3b
  1. 8
      src/trace/traceManager.js

@ -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)

Loading…
Cancel
Save