aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-25 12:12:14 -0300
committerSebastian <sebasjm@gmail.com>2022-11-25 12:12:14 -0300
commitc121eb875eb05b5fb49bd5583b6fcd4da8180879 (patch)
tree635833240140623082434e85cfb4e7c9998c6390 /packages
parente05ba843a061c8050648ce922f36ed3d8e1cf24a (diff)
fix: ageRestriction option was missing
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 5ad86dfe8..2167de534 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -100,6 +100,7 @@ import {
WalletCoreVersion,
WalletNotification,
codecForUserAttentionByIdRequest,
+ ManualWithdrawalDetails,
} from "@gnu-taler/taler-util";
import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js";
import {
@@ -1091,12 +1092,14 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
Amounts.parseOrThrow(req.amount),
req.restrictAge,
);
- return {
+ const resp: ManualWithdrawalDetails = {
amountRaw: req.amount,
amountEffective: Amounts.stringify(wi.selectedDenoms.totalCoinValue),
paytoUris: wi.exchangePaytoUris,
tosAccepted: wi.termsOfServiceAccepted,
+ ageRestrictionOptions: wi.ageRestrictionOptions,
};
+ return resp;
}
case WalletApiOperation.GetBalances: {
return await getBalances(ws);