diff options
author | Sebastian <sebasjm@gmail.com> | 2022-08-16 12:59:17 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-08-17 16:12:44 -0300 |
commit | 17e627c2f024f6a4fe2b40b370ab1c010488ccc3 (patch) | |
tree | 2450111e6aa84201a354a9d1fd2bd04436f840df /packages | |
parent | ac8f116780a860c8f4acfdf5553bf90d76afe236 (diff) |
default exchange
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 5 |
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 }); + } } }); } |