diff options
author | Florian Dold <florian@dold.me> | 2024-01-08 18:51:38 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-08 18:51:45 +0100 |
commit | 2987f6f8365a15c6761a370bfd0ebf0952ce3f66 (patch) | |
tree | cbaf22fb5a44efced31de485c3658edbbbc98731 /packages/taler-wallet-core/src/wallet.ts | |
parent | b0610d24571593909cd6683b340fa266de046e31 (diff) | |
download | wallet-core-2987f6f8365a15c6761a370bfd0ebf0952ce3f66.tar.gz wallet-core-2987f6f8365a15c6761a370bfd0ebf0952ce3f66.tar.bz2 wallet-core-2987f6f8365a15c6761a370bfd0ebf0952ce3f66.zip |
wallet-core: fix error reporting for exchange entries
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 2d422e59c..154665c47 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -205,7 +205,7 @@ import { getExchangeDetailedInfo, getExchangeDetails, getExchangeTos, - getExchanges, + listExchanges, updateExchangeFromUrlHandler, } from "./operations/exchanges.js"; import { getMerchantInfo } from "./operations/merchants.js"; @@ -963,7 +963,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( return {}; } case WalletApiOperation.ListExchanges: { - return await getExchanges(ws); + return await listExchanges(ws); } case WalletApiOperation.GetExchangeEntryByUrl: { const req = codecForGetExchangeEntryByUrlRequest().decode(payload); @@ -997,7 +997,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( case WalletApiOperation.ListExchangesForScopedCurrency: { const req = codecForListExchangesForScopedCurrencyRequest().decode(payload); - const exchangesResp = await getExchanges(ws); + const exchangesResp = await listExchanges(ws); const result: ExchangesShortListResponse = { exchanges: [], }; |