From f72f7820ddf8c29d76aa3b95bb260bd81d27490b Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Thu, 15 Feb 2024 13:57:51 -0300 Subject: [PATCH] fix addr alignement (#366) Signed-off-by: Ignacio Hagopian --- core/state/access_witness.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/access_witness.go b/core/state/access_witness.go index 7eb0990b64..75cd85eeb8 100644 --- a/core/state/access_witness.go +++ b/core/state/access_witness.go @@ -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 }