Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Dec 26, 2024
1 parent 9d1da94 commit 3910250
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/CashuWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,11 @@ class CashuWallet {
const mintQuotePayload: MintQuotePayload = {
unit: this._unit,
amount: amount,
description: description,
description: description
};
return await this.mint.createMintQuote(mintQuotePayload);
}

/**
* Requests a mint quote from the mint that is locked to a public key.
* @param amount Amount requesting for mint.
Expand All @@ -635,7 +635,7 @@ class CashuWallet {
pubkey: pubkey
};
return await this.mint.createMintQuote(mintQuotePayload);
}
}

/**
* Gets an existing mint quote from the mint.
Expand All @@ -650,7 +650,7 @@ class CashuWallet {
* Mint proofs for a given mint quote
* @param amount amount to request
* @param {string} quote - ID of mint quote (when quote is a string)
* @param {LockedMintQuote} quote - containing the quote ID and unlocking private key (when quote is a LockedMintQuote)
* @param {LockedMintQuote} quote - containing the quote ID and unlocking private key (when quote is a LockedMintQuote)
* @param {MintProofOptions} [options] - Optional parameters for configuring the Mint Proof operation
* @returns proofs
*/
Expand All @@ -674,12 +674,11 @@ class CashuWallet {
counter,
pubkey
);
const mintQuoteSignature = typeof quote === 'string'
? undefined
: signMintQuote(quote.privkey, quote.id, blindedMessages);
const quoteId = typeof quote === 'string'
? quote
: quote.id;
const mintQuoteSignature =
typeof quote === 'string'
? undefined
: signMintQuote(quote.privkey, quote.id, blindedMessages);
const quoteId = typeof quote === 'string' ? quote : quote.id;
const mintPayload: MintPayload = {
outputs: blindedMessages,
quote: quoteId,
Expand Down

0 comments on commit 3910250

Please sign in to comment.