diff options
author | Florian Dold <florian@dold.me> | 2021-05-20 13:17:04 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-20 13:17:04 +0200 |
commit | 1fb182700252675eb89bfef5c27637e8396f1258 (patch) | |
tree | 87f4c919e8bc2ff69d47553baef14fba5083c411 /packages/taler-wallet-core/src | |
parent | 851ac5602cea0beb7b3e29dc9a95c2093a0ed906 (diff) | |
download | wallet-core-1fb182700252675eb89bfef5c27637e8396f1258.tar.xz |
fix trust check
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/operations/reserves.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/reserves.ts b/packages/taler-wallet-core/src/operations/reserves.ts index 9addca975..d8821d560 100644 --- a/packages/taler-wallet-core/src/operations/reserves.ts +++ b/packages/taler-wallet-core/src/operations/reserves.ts @@ -58,11 +58,7 @@ import { updateRetryInfoTimeout, } from "../util/retries.js"; import { guardOperationException, OperationFailedError } from "./errors.js"; -import { - updateExchangeFromUrl, - getExchangeTrust, - getExchangePaytoUri, -} from "./exchanges.js"; +import { updateExchangeFromUrl, getExchangePaytoUri } from "./exchanges.js"; import { InternalWalletState } from "./state.js"; import { updateWithdrawalDenoms, @@ -72,6 +68,7 @@ import { processWithdrawGroup, getBankWithdrawalInfo, } from "./withdraw.js"; +import { getExchangeTrust } from "./currencies.js"; const logger = new Logger("reserves.ts"); @@ -184,7 +181,7 @@ export async function createReserve( talerWithdrawUri: reserveRecord.bankInfo.statusUrl, }); } - if (!isAudited && !isAudited) { + if (!isAudited && !isTrusted) { await tx.put(Stores.exchangeTrustStore, { currency: reserveRecord.currency, exchangeBaseUrl: reserveRecord.exchangeBaseUrl, |