summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-08-05 23:19:55 +0200
committerFlorian Dold <florian@dold.me>2023-08-05 23:34:37 +0200
commit308a4282cbdde7376d88ca76e3eca967a1f02c46 (patch)
tree1a919a37095d781513109fdc3bf388af0002a437 /packages/taler-wallet-core/src/wallet.ts
parent951d1b66fa0ba0dbe7cc4f81a0de4d64b35f8fad (diff)
downloadwallet-core-308a4282cbdde7376d88ca76e3eca967a1f02c46.tar.gz
wallet-core-308a4282cbdde7376d88ca76e3eca967a1f02c46.tar.bz2
wallet-core-308a4282cbdde7376d88ca76e3eca967a1f02c46.zip
wallet-core: mock implementation of GetCurrencyInfo
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index aab414e94..81ea26260 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -118,6 +118,7 @@ import {
sampleWalletCoreTransactions,
validateIban,
codecForSharePaymentRequest,
+ GetCurrencyInfoResponse,
} from "@gnu-taler/taler-util";
import {
HttpRequestLibrary,
@@ -1395,6 +1396,14 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
const resp = await getBackupRecovery(ws);
return resp;
}
+ case WalletApiOperation.GetCurrencyInfo: {
+ const resp: GetCurrencyInfoResponse = {
+ decimalSeparator: ",",
+ isCurrencyNameLeading: false,
+ numFractionalDigits: 2,
+ };
+ return resp;
+ }
case WalletApiOperation.ImportBackupRecovery: {
const req = codecForAny().decode(payload);
await loadBackupRecovery(ws, req);