cashu wallet restore and addressed some test errors

This commit is contained in:
lemonknowsall committed 2025-10-24 22:34:26 -07:00
1 parent cfd1e7269f
commit aff1b0add5
6 files changed
+240 -48

No files matched your search

+7 -4
View File
@@ -10,9 +10,8 @@ import { useCopyToClipboard } from '@/hooks/useCopyToClipboard';
import { useMintManager } from '@/hooks/cashu/useMintManager';
import { useWalletTransactions } from '@/hooks/cashu/useWalletTransactions';
import { useHistoryManager } from '@/hooks/cashu/useHistoryManager';
import { useNsecAccess } from '@/hooks/useNsecAccess';
import { useBitcoinBalance, useBitcoinTransactionHistory, useBitcoinOperations } from '@/hooks/useBitcoinBalance';
import { nostrPubkeyToBitcoinAddress, UTXO } from '@/lib/bitcoin';
import { nostrPubkeyToBitcoinAddress } from '@/lib/bitcoin';
import { QRModal } from '@/components/ui/qr-modal';
import { WalletHeader } from './WalletHeader';
import { TransactionCard } from './PaymentCard';
@@ -54,8 +53,6 @@ export function CashuWallet() {
// Bitcoin operations hook
const {
utxos,
isLoadingUtxos,
feeRate,
isConsolidating,
bitcoinMaxAmount,
fetchBitcoinUtxos,
@@ -141,6 +138,8 @@ export function CashuWallet() {
handleReceive,
handleSend,
handleConfirmInvoicePayment,
handleRestoreFromSeedPhrase,
isRestoring,
mintQuoteUnsubscribeRef,
} = useWalletTransactions({
coco,
@@ -461,6 +460,10 @@ export function CashuWallet() {
sentTokenQRCode={sentTokenQRCode}
showSeedPhraseInfo={showSeedPhraseInfo}
setShowSeedPhraseInfo={setShowSeedPhraseInfo}
onRestoreFromSeedPhrase={handleRestoreFromSeedPhrase}
isRestoring={isRestoring}
mints={mints}
activeMintUrl={activeMintUrl}
/>
{/* Bottom Drawer Modals */}