Skip to content

Commit

Permalink
Fix mistype in variable (#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored Nov 25, 2024
1 parent 7286fe7 commit c55d90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/trie/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit c55d90f

Please sign in to comment.