Skip to content

Commit e870794

Browse files
Fix stack layout comment in GET_SLOT_FROM_KEYS_2D (#90)
In the `concat the two keys` step of GET_SLOT_FROM_KEYS_2D (Hashmap.huff), one of the stack layout comments was missing `slot1` before that value is removed from the stack. Added it in the comment.
1 parent 3a81d5a commit e870794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data-structures/Hashmap.huff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
sha3 // [slot1, key2]
5050

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

5555
// next byte
@@ -102,4 +102,4 @@
102102
// Input stack: [slot, key1, key2, value]
103103
GET_SLOT_FROM_KEYS_2D(<mem_ptr>) // [slot, value]
104104
sstore // []
105-
}
105+
}

0 commit comments

Comments
 (0)