don't cache zero slot

pull/7/head
yann300 8 years ago
parent cd9dd859ad
commit 7641c37dc1
  1. 2
      src/storage/storageResolver.js

@ -66,7 +66,7 @@ function storageRangeInternal (self, slotKey, tx, stepIndex, address, callback)
if (error) {
return callback(error)
}
if (!storage[slotKey]) {
if (!storage[slotKey] && slotKey !== zeroSlot) { // we don't cache the zero slot (could lead to inconsistency)
storage[slotKey] = {
key: slotKey,
value: zeroSlot

Loading…
Cancel
Save