aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-20 13:17:04 +0200
committerFlorian Dold <florian@dold.me>2021-05-20 13:17:04 +0200
commit1fb182700252675eb89bfef5c27637e8396f1258 (patch)
tree87f4c919e8bc2ff69d47553baef14fba5083c411
parent851ac5602cea0beb7b3e29dc9a95c2093a0ed906 (diff)
fix trust check
-rw-r--r--packages/taler-wallet-core/src/operations/reserves.ts9
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,