From 48bd587f3781cbbc8b2704c04f4a9d831cba46a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewandowski?= Date: Wed, 20 Dec 2023 11:17:05 +0100 Subject: [PATCH] chore(BUX-190): return named parametr in createXPrivAndXPub method --- xpriv/xpriv.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xpriv/xpriv.go b/xpriv/xpriv.go index 046a57b..1fbb726 100644 --- a/xpriv/xpriv.go +++ b/xpriv/xpriv.go @@ -125,13 +125,13 @@ func FromString(xpriv string) (Key, error) { return keys, nil } -func createXPrivAndXPub(seed []byte) (*bip32.ExtendedKey, *bip32.ExtendedKey, error) { - hdXpriv, err := bip32.NewMaster(seed, &chaincfg.MainNet) +func createXPrivAndXPub(seed []byte) (hdXpriv *bip32.ExtendedKey, hdXpub *bip32.ExtendedKey, err error) { + hdXpriv, err = bip32.NewMaster(seed, &chaincfg.MainNet) if err != nil { return nil, nil, fmt.Errorf("key generation error when creating hd private key: %w", err) } - hdXpub, err := hdXpriv.Neuter() + hdXpub, err = hdXpriv.Neuter() if err != nil { return nil, nil, fmt.Errorf("key generation error when creating hd public hey: %w", err) }