summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 6b9e960ce..507d72cce 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -52,6 +52,7 @@ import {
NotificationType,
RecoverStoredBackupRequest,
RefreshReason,
+ ScopeType,
StoredBackupList,
TalerError,
TalerErrorCode,
@@ -1209,6 +1210,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
for (const x of wi.selectedDenoms.selectedDenoms) {
numCoins += x.count;
}
+ const amt = Amounts.parseOrThrow(req.amount);
const resp: ManualWithdrawalDetails = {
amountRaw: req.amount,
amountEffective: Amounts.stringify(wi.selectedDenoms.totalCoinValue),
@@ -1217,6 +1219,12 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>(
ageRestrictionOptions: wi.ageRestrictionOptions,
withdrawalAccountList: wi.exchangeCreditAccountDetails,
numCoins,
+ // FIXME: Once we have proper scope info support, return correct info here.
+ scopeInfo: {
+ type: ScopeType.Exchange,
+ currency: amt.currency,
+ url: req.exchangeBaseUrl,
+ },
};
return resp;
}