summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-08-30 15:54:56 +0200
committerFlorian Dold <florian@dold.me>2023-08-30 15:54:56 +0200
commitd19aef746c1e67deaccc7c8cefba008f2f0d46ca (patch)
tree26ee3734f6be8a418dc734761bdb48fc14dbafaf /packages/taler-wallet-core/src/wallet.ts
parent88f7338d7c84ac2a774b483ccff25faf6ceeb879 (diff)
downloadwallet-core-d19aef746c1e67deaccc7c8cefba008f2f0d46ca.tar.gz
wallet-core-d19aef746c1e67deaccc7c8cefba008f2f0d46ca.tar.bz2
wallet-core-d19aef746c1e67deaccc7c8cefba008f2f0d46ca.zip
wallet-core: towards DD48
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 194894e52..c9ccda20d 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -189,6 +189,7 @@ import {
} from "./operations/deposits.js";
import {
acceptExchangeTermsOfService,
+ addPresetExchangeEntry,
downloadTosFromAcceptedFormat,
getExchangeDetails,
getExchangeRequestTimeout,
@@ -533,6 +534,7 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> {
await tx.auditorTrust.put(c);
}
for (const baseUrl of ws.config.builtin.exchanges) {
+ await addPresetExchangeEntry(tx, baseUrl);
const now = AbsoluteTime.now();
provideExchangeRecordInTx(ws, tx, baseUrl, now);
}
@@ -1688,8 +1690,7 @@ export class Wallet {
public static defaultConfig: Readonly<WalletConfig> = {
builtin: {
- //exchanges: ["https://exchange.demo.taler.net/"],
- exchanges: [],
+ exchanges: ["https://exchange.demo.taler.net/"],
auditors: [
{
currency: "KUDOS",