diff options
Diffstat (limited to 'packages/taler-wallet-core/src/dbless.ts')
-rw-r--r-- | packages/taler-wallet-core/src/dbless.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/dbless.ts b/packages/taler-wallet-core/src/dbless.ts index 04bfa1359..30c4247a8 100644 --- a/packages/taler-wallet-core/src/dbless.ts +++ b/packages/taler-wallet-core/src/dbless.ts @@ -205,11 +205,16 @@ export async function withdrawCoin(args: { }; } +export interface FindDenomOptions { + denomselAllowLate?: boolean; +} + export function findDenomOrThrow( - denomselAllowLate: boolean, exchangeInfo: ExchangeInfo, amount: AmountString, + options: FindDenomOptions = {}, ): DenominationRecord { + const denomselAllowLate = options.denomselAllowLate ?? false; for (const d of exchangeInfo.keys.currentDenominations) { const value: AmountJson = { currency: d.currency, |