warning (keys should be sorted)

pull/7/head
yann300 8 years ago
parent 04f623ead4
commit 2584c7e66d
  1. 2
      src/storage/storageResolver.js

@ -78,7 +78,7 @@ function storageRangeInternal (self, slotKey, tx, stepIndex, fullStorage, storag
}
}
toCache(self, address, storage)
if (slotKey === zeroSlot && Object.keys(storage).length < self.maxSize) {
if (slotKey === zeroSlot && Object.keys(storage).length < self.maxSize) { // only working if keys are sorted !!
self.storageByAddress[address].complete = true
}
callback(null, Object.assign(storage, storageChanges))

Loading…
Cancel
Save