diff options
author | Florian Dold <florian@dold.me> | 2022-09-16 17:35:06 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-16 17:35:06 +0200 |
commit | 183c83661454cfb75ee6d2969b7529619d9a6226 (patch) | |
tree | 3494f517161f0093bfffd51b6f259fdd689c38e2 /packages/taler-wallet-core/src/wallet.ts | |
parent | 16e7814445d57c2494ddaf3aaf11d60abb2b036b (diff) | |
download | wallet-core-183c83661454cfb75ee6d2969b7529619d9a6226.tar.xz |
-wallet-core: merge DenominationInfo and DenomInfo
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index f89d0330c..c993155d8 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -92,6 +92,7 @@ import { FeeDescription, TalerErrorDetail, codecForTransactionByIdRequest, + DenominationInfo, } from "@gnu-taler/taler-util"; import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; import { @@ -115,7 +116,6 @@ import { } from "./errors.js"; import { createDenominationTimeline } from "./index.browser.js"; import { - DenomInfo, ExchangeOperations, InternalWalletState, MerchantInfo, @@ -746,7 +746,7 @@ async function getExchangeDetailedInfo( return; } - const denominations: DenomInfo[] = denominationRecords.map((x) => + const denominations: DenominationInfo[] = denominationRecords.map((x) => DenominationRecord.toDenomInfo(x), ); @@ -1572,7 +1572,7 @@ class InternalWalletStateImpl implements InternalWalletState { }; // FIXME: Use an LRU cache here. - private denomCache: Record<string, DenomInfo> = {}; + private denomCache: Record<string, DenominationInfo> = {}; /** * Promises that are waiting for a particular resource. @@ -1606,7 +1606,7 @@ class InternalWalletStateImpl implements InternalWalletState { }>, exchangeBaseUrl: string, denomPubHash: string, - ): Promise<DenomInfo | undefined> { + ): Promise<DenominationInfo | undefined> { const key = `${exchangeBaseUrl}:${denomPubHash}`; const cached = this.denomCache[key]; if (cached) { |