mirror of
https://github.com/muun/recovery.git
synced 2025-11-13 15:21:37 -05:00
Release v2.2.0
This commit is contained in:
7
vendor/github.com/muun/libwallet/hdpublickey.go
generated
vendored
7
vendor/github.com/muun/libwallet/hdpublickey.go
generated
vendored
@@ -52,7 +52,12 @@ func (p *HDPublicKey) DerivedAt(index int64) (*HDPublicKey, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
path := hdpath.MustParse(p.Path).Child(uint32(index))
|
||||
parentPath, err := hdpath.Parse(p.Path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
path := parentPath.Child(uint32(index))
|
||||
|
||||
return &HDPublicKey{key: *child, Network: p.Network, Path: path.String()}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user