diff options
Diffstat (limited to 'packages/taler-wallet-core/src/dbless.ts')
-rw-r--r-- | packages/taler-wallet-core/src/dbless.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/dbless.ts b/packages/taler-wallet-core/src/dbless.ts index 5dc13433a..04bfa1359 100644 --- a/packages/taler-wallet-core/src/dbless.ts +++ b/packages/taler-wallet-core/src/dbless.ts @@ -65,7 +65,7 @@ import { } from "./operations/withdraw.js"; import { ExchangeInfo } from "./operations/exchanges.js"; import { assembleRefreshRevealRequest } from "./operations/refresh.js"; -import { isWithdrawableDenom } from "./index.js"; +import { isWithdrawableDenom, WalletConfig } from "./index.js"; const logger = new Logger("dbless.ts"); @@ -206,6 +206,7 @@ export async function withdrawCoin(args: { } export function findDenomOrThrow( + denomselAllowLate: boolean, exchangeInfo: ExchangeInfo, amount: AmountString, ): DenominationRecord { @@ -215,7 +216,10 @@ export function findDenomOrThrow( fraction: d.amountFrac, value: d.amountVal, }; - if (Amounts.cmp(value, amount) === 0 && isWithdrawableDenom(d)) { + if ( + Amounts.cmp(value, amount) === 0 && + isWithdrawableDenom(d, denomselAllowLate) + ) { return d; } } |