mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix addr alignement (#366)
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This commit is contained in:
parent
72211cd5d5
commit
f72f7820dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue