Commit 2584c7e6 authored by yann300's avatar yann300

warning (keys should be sorted)

parent 04f623ea
......@@ -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))
......
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