fixed send on-chain

This commit is contained in:
lemonknowsall committed 2025-10-26 09:22:15 -07:00
1 parent 9e29d18a70
commit 97613fc5b2
1 file changed
+4
+4
View File
@@ -11,6 +11,7 @@ import { useMintManager } from '@/hooks/cashu/useMintManager';
import { useWalletTransactions } from '@/hooks/cashu/useWalletTransactions';
import { useHistoryManager } from '@/hooks/cashu/useHistoryManager';
import { useBitcoinBalance, useBitcoinTransactionHistory, useBitcoinOperations } from '@/hooks/useBitcoinBalance';
import { useNsecAccess } from '@/hooks/useNsecAccess';
import { nostrPubkeyToBitcoinAddress } from '@/lib/bitcoin';
import { QRModal } from '@/components/ui/qr-modal';
import { WalletHeader } from './WalletHeader';
@@ -45,6 +46,7 @@ export function CashuWallet() {
const { toast } = useToast();
const { generateQRCode } = useQRCode();
const { copy: copyToClipboard } = useCopyToClipboard();
const { hasNsecAccess } = useNsecAccess();
// Bitcoin hooks - including balance and transaction history
const bitcoinAddress = user?.pubkey ? nostrPubkeyToBitcoinAddress(user.pubkey) : null;
@@ -528,6 +530,7 @@ export function CashuWallet() {
setBitcoinRecipient={setBitcoinRecipient}
pendingBitcoinRecipient={pendingBitcoinRecipient}
setPendingBitcoinRecipient={setPendingBitcoinRecipient}
hasNsecAccess={hasNsecAccess}
bitcoinMaxAmount={bitcoinMaxAmount}
onSendMax={() => handleSendMax(setBitcoinAmount)}
/>
@@ -583,6 +586,7 @@ export function CashuWallet() {
setBitcoinRecipient={() => {}}
pendingBitcoinRecipient={null}
setPendingBitcoinRecipient={() => {}}
hasNsecAccess={hasNsecAccess}
/>
</div>
</DrawerContent>