Skip to content

Commit

Permalink
fix(SPV-000): change to correct key in CreateXPub method
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmkowalski committed Jan 16, 2025
1 parent fefef46 commit 07c9061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transports/spvwallet/admin_client_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (a *adminClientAdapter) RegisterXpub(xpriv *bip32.ExtendedKey) (string, err
return "", errors.Wrap(err, "error while returning a new extended public key from the xPriv")
}

_, err = a.api.CreateXPub(context.Background(), &commands.CreateUserXpub{XPub: xpriv.String()})
_, err = a.api.CreateXPub(context.Background(), &commands.CreateUserXpub{XPub: xpub.String()})
if err != nil {
a.log.Error().Str("xpub", xpub.String()).Msgf("Error while creating new xPub: %v", err.Error())
return "", errors.Wrap(err, "error while creating new xPub")
Expand Down

0 comments on commit 07c9061

Please # to comment.