Add getWalletAddress

This commit is contained in:
Jon Staab
2025-09-29 14:33:03 -07:00
parent d4cafb0cb7
commit 4a0d4c9b85
+3
View File
@@ -36,3 +36,6 @@ export const isWebLNWallet = (wallet: Wallet): wallet is WebLNWallet =>
wallet.type === WalletType.WebLN wallet.type === WalletType.WebLN
export const isNWCWallet = (wallet: Wallet): wallet is NWCWallet => wallet.type === WalletType.NWC export const isNWCWallet = (wallet: Wallet): wallet is NWCWallet => wallet.type === WalletType.NWC
export const getWalletAddress = (wallet: Wallet) =>
isNWCWallet(wallet) ? wallet.info.lud16 : undefined