taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 17e627c2f024f6a4fe2b40b370ab1c010488ccc3
parent ac8f116780a860c8f4acfdf5553bf90d76afe236
Author: Sebastian <sebasjm@gmail.com>
Date:   Tue, 16 Aug 2022 12:59:17 -0300

default exchange

Diffstat:
Mpackages/taler-wallet-core/src/wallet.ts | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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 }); + } } }); }