mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user