diff --git a/src/CashuWallet.ts b/src/CashuWallet.ts index 1e60568c..3e6680a1 100644 --- a/src/CashuWallet.ts +++ b/src/CashuWallet.ts @@ -668,20 +668,19 @@ class CashuWallet { request: invoice }; - if(this._mintInfo?.amountless){ + if (this._mintInfo?.amountless) { const meltQuotePayload: MeltQuotePayload = { - unit: this._unit, - request: invoice, - options: { - amountless: { - amount_msat: amount ?? 0, - }, - }, - }; - const meltQuote = await this.mint.createMeltQuote(meltQuotePayload); - return meltQuote; - - } + unit: this._unit, + request: invoice, + options: { + amountless: { + amount_msat: amount ?? 0 + } + } + }; + const meltQuote = await this.mint.createMeltQuote(meltQuotePayload); + return meltQuote; + } const meltQuote = await this.mint.createMeltQuote(meltQuotePayload); return meltQuote; } diff --git a/src/model/types/wallet/payloads.ts b/src/model/types/wallet/payloads.ts index 0d8ad00f..55df5e4b 100644 --- a/src/model/types/wallet/payloads.ts +++ b/src/model/types/wallet/payloads.ts @@ -57,15 +57,15 @@ export type MeltQuotePayload = { */ export type MeltQuotePayloadAmountLess = { /** - * Optional property for specifying an amountless option. - */ + * Optional property for specifying an amountless option. + */ amountless?: { /** - * The amount in milli-satoshis. - */ - amount_msat: number - } -} + * The amount in milli-satoshis. + */ + amount_msat: number; + }; +}; /** * Payload that needs to be sent to the mint when requesting a mint