fix addr alignement (#366)

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This commit is contained in:
Ignacio Hagopian 2024-02-15 13:57:51 -03:00 committed by Guillaume Ballet
parent 72211cd5d5
commit f72f7820dd

View file

@ -244,7 +244,7 @@ type branchAccessKey struct {
func newBranchAccessKey(addr []byte, treeIndex uint256.Int) branchAccessKey {
var sk branchAccessKey
copy(sk.addr[:], addr)
copy(sk.addr[20-len(addr):], addr)
sk.treeIndex = treeIndex
return sk
}