Skip to content

Commit

Permalink
fix addr alignement (#366)
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored and gballet committed May 8, 2024
1 parent 72211cd commit f72f782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/access_witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f72f782

Please sign in to comment.