Skip to content

Commit a48ac45

Browse files
committed
lnwallet: fix error message
Include the variable of interest (walletAddr), not the outcome of the check (pubKeyAddr) which is always nil.
1 parent 9873029 commit a48ac45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnwallet/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ func InternalKeyForAddr(wallet WalletController, netParams *chaincfg.Params,
663663
pubKeyAddr, ok := walletAddr.(waddrmgr.ManagedPubKeyAddress)
664664
if !ok {
665665
return none, fmt.Errorf("expected pubkey addr, got %T",
666-
pubKeyAddr)
666+
walletAddr)
667667
}
668668

669669
_, derivationPath, _ := pubKeyAddr.DerivationInfo()

0 commit comments

Comments
 (0)