diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-24 08:55:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-24 08:58:48 -0300 |
commit | f07436aa4910114a514235fb17879411dae0a555 (patch) | |
tree | 83e1dd651ca895882b74aa6bb1d5f188a3415e4d /packages/taler-wallet-core/src/wallet.ts | |
parent | b3b3c21acba0cda261d339572de02aff0e704b59 (diff) | |
download | wallet-core-f07436aa4910114a514235fb17879411dae0a555.tar.gz wallet-core-f07436aa4910114a514235fb17879411dae0a555.tar.bz2 wallet-core-f07436aa4910114a514235fb17879411dae0a555.zip |
new exchange-added notifiaction and including tos information in the wxApi.listExchange api
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 44591a268..576a44597 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -513,9 +513,16 @@ async function getExchanges( if (!exchangeDetails) { continue; } + exchanges.push({ exchangeBaseUrl: r.baseUrl, currency, + tos: { + acceptedVersion: exchangeDetails.termsOfServiceAcceptedEtag, + currentVersion: exchangeDetails.termsOfServiceLastEtag, + contentType: exchangeDetails.termsOfServiceContentType, + content: exchangeDetails.termsOfServiceText, + }, paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri), }); } @@ -988,7 +995,7 @@ export async function handleCoreApiRequest( try { logger.error("Caught unexpected exception:"); logger.error(e.stack); - } catch (e) {} + } catch (e) { } return { type: "error", operation, |