prevent issue with sending payments using cashu when mint is not loaded
This commit is contained in:
parent
2d858727b0
commit
ce01791cbf
1 changed files with 1 additions and 0 deletions
1
cashu.ts
1
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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue