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 }