summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-10-22 14:47:50 -0300
committerSebastian <sebasjm@gmail.com>2023-10-22 14:47:50 -0300
commit5e160a2d4d1d77c87600f28f806bc94c086267c7 (patch)
treeec8475a39d7aa4565b490e259d787b195fb98bb3 /packages/taler-wallet-core/src/wallet.ts
parent2005273d1286819e68d3ea7a3290f8c357be5e40 (diff)
downloadwallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.gz
wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.bz2
wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.zip
update the amountString definitionv0.9.3-dev.34
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 6600aa799..fe77fecc1 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -132,6 +132,7 @@ import {
codecForListExchangesForScopedCurrencyRequest,
ListExchangesForScopedCurrencyRequest,
ExchangesShortListResponse,
+ AmountString,
} from "@gnu-taler/taler-util";
import type { HttpRequestLibrary } from "@gnu-taler/taler-util/http";
import { readSuccessResponseJsonOrThrow } from "@gnu-taler/taler-util/http";
@@ -931,9 +932,9 @@ async function dumpCoins(ws: InternalWalletState): Promise<CoinDumpJson> {
ageCommitmentProof: c.ageCommitmentProof,
spend_allocation: c.spendAllocation
? {
- amount: c.spendAllocation.amount,
- id: c.spendAllocation.id,
- }
+ amount: c.spendAllocation.amount,
+ id: c.spendAllocation.id,
+ }
: undefined,
});
}
@@ -1076,7 +1077,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
}
case WalletApiOperation.WithdrawTestkudos: {
await withdrawTestBalance(ws, {
- amount: "TESTKUDOS:10",
+ amount: "TESTKUDOS:10" as AmountString,
corebankApiBaseUrl: "https://bank.test.taler.net/",
exchangeBaseUrl: "https://exchange.test.taler.net/",
});
@@ -1278,7 +1279,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
typeof url.templateParams.amount === "string"
) {
templateDetails.amount =
- req.templateParams.amount ?? url.templateParams.amount;
+ (req.templateParams.amount ?? url.templateParams.amount) as AmountString | undefined;
}
if (
url.templateParams.summary !== undefined &&