summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-08 18:51:38 +0100
committerFlorian Dold <florian@dold.me>2024-01-08 18:51:45 +0100
commit2987f6f8365a15c6761a370bfd0ebf0952ce3f66 (patch)
treecbaf22fb5a44efced31de485c3658edbbbc98731 /packages/taler-wallet-core/src/wallet.ts
parentb0610d24571593909cd6683b340fa266de046e31 (diff)
downloadwallet-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.ts6
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: [],
};