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 committed 2025-04-23 11:17:00 -03:00
1 parent a35ace7371
commit b5c9df81f0
1 file changed
+1 -1
+1 -1
View File
@@ -663,7 +663,7 @@ func InternalKeyForAddr(wallet WalletController, netParams *chaincfg.Params,
pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress)
if !ok {
return none, fmt.Errorf("expected pubkey addr, got %T",
pubKeyAddr)
walletAddr)
}
_, derivationPath, _ := pubKeyAddr.DerivationInfo()