From c55d90f31a4969cb87980b39d716a3850825fdf1 Mon Sep 17 00:00:00 2001 From: Kirill Date: Mon, 25 Nov 2024 12:48:08 +0400 Subject: [PATCH] Fix mistype in variable (#2279) --- core/trie/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/trie/node.go b/core/trie/node.go index b62db62807..db9cb85206 100644 --- a/core/trie/node.go +++ b/core/trie/node.go @@ -33,8 +33,8 @@ func (n *Node) Hash(path *Key, hashFunc hashFunc) *felt.Felt { } // Hash calculates the hash of a [Node] -func (n *Node) HashFromParent(parnetKey, nodeKey *Key, hashFunc hashFunc) *felt.Felt { - path := path(nodeKey, parnetKey) +func (n *Node) HashFromParent(parentKey, nodeKey *Key, hashFunc hashFunc) *felt.Felt { + path := path(nodeKey, parentKey) return n.Hash(&path, hashFunc) }