From aab3f917c42c9c38b0d13b69380075e5a0505720 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Nov 2022 17:52:51 +0100 Subject: -harness fixes for kyc --- packages/taler-wallet-core/src/crypto/cryptoImplementation.ts | 2 -- packages/taler-wallet-core/src/db.ts | 2 -- packages/taler-wallet-core/src/operations/backup/export.ts | 1 - packages/taler-wallet-core/src/operations/backup/import.ts | 1 - packages/taler-wallet-core/src/operations/exchanges.ts | 1 - 5 files changed, 7 deletions(-) (limited to 'packages/taler-wallet-core') diff --git a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts index 593574eb7..8ba7d9298 100644 --- a/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts +++ b/packages/taler-wallet-core/src/crypto/cryptoImplementation.ts @@ -914,10 +914,8 @@ export const nativeCryptoR: TalerCryptoInterfaceR = { .put(timestampRoundedToBuffer(gf.start_date)) .put(timestampRoundedToBuffer(gf.end_date)) .put(durationRoundedToBuffer(gf.purse_timeout)) - .put(durationRoundedToBuffer(gf.account_kyc_timeout)) .put(durationRoundedToBuffer(gf.history_expiration)) .put(amountToBuffer(Amounts.parseOrThrow(gf.history_fee))) - .put(amountToBuffer(Amounts.parseOrThrow(gf.kyc_fee))) .put(amountToBuffer(Amounts.parseOrThrow(gf.account_fee))) .put(amountToBuffer(Amounts.parseOrThrow(gf.purse_fee))) .put(bufferForUint32(gf.purse_account_limit)) diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index b68da8333..307f76f21 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -452,8 +452,6 @@ export interface ExchangeDetailsRecord { /** * Fees for exchange services - * - * FIXME: Put in separate object store! */ globalFees: ExchangeGlobalFees[]; diff --git a/packages/taler-wallet-core/src/operations/backup/export.ts b/packages/taler-wallet-core/src/operations/backup/export.ts index b344aa362..b33d2f11a 100644 --- a/packages/taler-wallet-core/src/operations/backup/export.ts +++ b/packages/taler-wallet-core/src/operations/backup/export.ts @@ -363,7 +363,6 @@ export async function exportBackup( accountFee: Amounts.stringify(x.accountFee), historyFee: Amounts.stringify(x.historyFee), purseFee: Amounts.stringify(x.purseFee), - kycTimeout: x.kycTimeout, endDate: x.endDate, historyTimeout: x.historyTimeout, signature: x.signature, diff --git a/packages/taler-wallet-core/src/operations/backup/import.ts b/packages/taler-wallet-core/src/operations/backup/import.ts index 187acc5d4..73ad1ecc6 100644 --- a/packages/taler-wallet-core/src/operations/backup/import.ts +++ b/packages/taler-wallet-core/src/operations/backup/import.ts @@ -414,7 +414,6 @@ export async function importBackup( accountFee: Amounts.parseOrThrow(x.accountFee), historyFee: Amounts.parseOrThrow(x.historyFee), purseFee: Amounts.parseOrThrow(x.purseFee), - kycTimeout: x.kycTimeout, endDate: x.endDate, historyTimeout: x.historyTimeout, signature: x.signature, diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 8e68074d5..41e63b956 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -326,7 +326,6 @@ async function validateGlobalFees( endDate: gf.end_date, signature: gf.master_sig, historyTimeout: gf.history_expiration, - kycTimeout: gf.account_kyc_timeout, purseLimit: gf.purse_account_limit, purseTimeout: gf.purse_timeout, }); -- cgit v1.2.3