Closed AmadiMichael closed 1 year ago
lgtm. would be nice to get a second set of eyes on this one since i was involved in the creation of this fix @cheethas @clabby @refcell @MathisGD
Minor issues with comments, otherwise LGTM
Ah, missed them, thanks. Committed.
This changes the pattern of hashing for slots in
Hashmap.huff
to match that of how solidity lang handles mappings.GET_SLOT_FROM_KEYS()
function usessha3(slot . key)
againstsha3(key . slot)
used in solidity,GET_SLOT_FROM_KEYS_2D()
function usessha3(sha3(slot . key1) . key2)
againstsha3(key2 . sha3(key1 . slot)
used in solidity andGET_SLOT_FROM_KEYS_3D()
function usessha3(key3 . sha3(key2 . sha3(slot . key1)))
againstsha3(key3 . sha3(key2 . sha3(key1 . slot)))
used in solidity.