From ce01791cbfa60e1178b2ec11b3d366e13dfaf211 Mon Sep 17 00:00:00 2001 From: Danny Morabito Date: Wed, 9 Jul 2025 17:53:24 +0200 Subject: [PATCH] prevent issue with sending payments using cashu when mint is not loaded --- cashu.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cashu.ts b/cashu.ts index 4717e81..eab8921 100644 --- a/cashu.ts +++ b/cashu.ts @@ -66,6 +66,7 @@ export default class PortalBtcWalletCashu { } async meltProofsToPayInvoice(invoice: string) { + await this.cashuWallet.loadMint(); const meltQuote = await this.cashuWallet.createMeltQuote(invoice); const amountToMelt = meltQuote.amount + meltQuote.fee_reserve; const { keep, send } = await this.cashuWallet.send(