From 2ca346e0ad1aa5bfac189cb3910a199b3cf69029 Mon Sep 17 00:00:00 2001 From: "gmhacker.eth" <95878230+goncaloMagalhaes@users.noreply.github.com> Date: Fri, 27 Jan 2023 17:23:41 +0000 Subject: [PATCH] Fix stack layout comment in GET_SLOT_FROM_KEYS_2D 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. --- src/data-structures/Hashmap.huff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data-structures/Hashmap.huff b/src/data-structures/Hashmap.huff index f53932ac..a4517a7d 100644 --- a/src/data-structures/Hashmap.huff +++ b/src/data-structures/Hashmap.huff @@ -49,7 +49,7 @@ sha3 // [slot1, key2] // concat the two keys - 0x20 add // [ + 0x20, key2] put slot1 in memory + 0x20 add // [ + 0x20, slot1, key2] put slot1 in memory mstore // [key2] // next byte @@ -102,4 +102,4 @@ // Input stack: [slot, key1, key2, value] GET_SLOT_FROM_KEYS_2D() // [slot, value] sstore // [] -} \ No newline at end of file +}