lnwallet: fix error message

Include the variable of interest (walletAddr), not the outcome of the check
(pubKeyAddr) which is always nil.
This commit is contained in:
Boris Nagaev
2025-04-21 17:03:08 -03:00
parent a35ace7371
commit b5c9df81f0

View File

@@ -663,7 +663,7 @@ func InternalKeyForAddr(wallet WalletController, netParams *chaincfg.Params,
pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress) pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress)
if !ok { if !ok {
return none, fmt.Errorf("expected pubkey addr, got %T", return none, fmt.Errorf("expected pubkey addr, got %T",
pubKeyAddr) walletAddr)
} }
_, derivationPath, _ := pubKeyAddr.DerivationInfo() _, derivationPath, _ := pubKeyAddr.DerivationInfo()