aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-core/src/wallet.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index a74c6c175..1b6b56691 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -214,6 +214,8 @@ const builtinAuditors: AuditorTrustRecord[] = [
},
];
+const builtinExchanges: string[] = ["https://exchange.demo.taler.net/"];
+
const logger = new Logger("wallet.ts");
async function getWithdrawalDetailsForAmount(
@@ -453,6 +455,9 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> {
for (const c of builtinAuditors) {
await tx.auditorTrustStore.put(c);
}
+ for (const url of builtinExchanges) {
+ await updateExchangeFromUrl(ws, url, { forceNow: true });
+ }
}
});
}