Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Dec 23, 2024
1 parent 17304e6 commit e9897ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
25 changes: 12 additions & 13 deletions src/CashuWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
14 changes: 7 additions & 7 deletions src/model/types/wallet/payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9897ff

Please sign in to comment.