From d1980c39fc2cf5054cfa9d3a03d685d75c2662d9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 18 Aug 2022 16:01:47 -0300 Subject: moved wireInfo and denomInfo into taler-util so it can be used from the ui --- packages/taler-wallet-core/src/operations/exchanges.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts') diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 007dad685..6f8da5aee 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -44,6 +44,9 @@ import { TalerProtocolDuration, TalerProtocolTimestamp, URL, + WireFee, + WireFeeMap, + WireInfo, } from "@gnu-taler/taler-util"; import { DenominationRecord, @@ -51,8 +54,6 @@ import { ExchangeDetailsRecord, ExchangeRecord, WalletStoresV1, - WireFee, - WireInfo, } from "../db.js"; import { TalerError } from "../errors.js"; import { InternalWalletState, TrustInfo } from "../internal-wallet-state.js"; @@ -276,7 +277,7 @@ async function validateWireInfo( throw Error("exchange acct signature invalid"); } } - const feesForType: { [wireMethod: string]: WireFee[] } = {}; + const feesForType: WireFeeMap = {}; for (const wireMethod of Object.keys(wireInfo.fees)) { const feeList: WireFee[] = []; for (const x of wireInfo.fees[wireMethod]) { -- cgit v1.2.3