aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-08-16 12:59:17 -0300
committerSebastian <sebasjm@gmail.com>2022-08-17 16:12:44 -0300
commit17e627c2f024f6a4fe2b40b370ab1c010488ccc3 (patch)
tree2450111e6aa84201a354a9d1fd2bd04436f840df
parentac8f116780a860c8f4acfdf5553bf90d76afe236 (diff)
downloadwallet-core-17e627c2f024f6a4fe2b40b370ab1c010488ccc3.tar.xz
default exchange
-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 });
+ }
}
});
}