Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Fix stack layout comment in GET_SLOT_FROM_KEYS_2D #90

Merged
merged 1 commit into from
Jan 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/data-structures/Hashmap.huff
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
sha3 // [slot1, key2]

// concat the two keys
<mem_ptr> 0x20 add // [<mem_ptr> + 0x20, key2] put slot1 in memory
<mem_ptr> 0x20 add // [<mem_ptr> + 0x20, slot1, key2] put slot1 in memory
mstore // [key2]

// next byte
Expand Down Expand Up @@ -102,4 +102,4 @@
// Input stack: [slot, key1, key2, value]
GET_SLOT_FROM_KEYS_2D(<mem_ptr>) // [slot, value]
sstore // []
}
}