summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-28 11:24:31 +0100
committerFlorian Dold <florian@dold.me>2023-11-28 11:24:31 +0100
commit7d562e7ee1172f14e4d304d0fbf39b1f9a524550 (patch)
treef97b08e53809eb9808ec3fd3c7799c6517d2c564 /packages/taler-wallet-core/src/operations
parentf8499a57a80597aad804d57f43a05d39d970e337 (diff)
downloadwallet-core-7d562e7ee1172f14e4d304d0fbf39b1f9a524550.tar.gz
wallet-core-7d562e7ee1172f14e4d304d0fbf39b1f9a524550.tar.bz2
wallet-core-7d562e7ee1172f14e4d304d0fbf39b1f9a524550.zip
always return WithdrawalAccountInfo instead of using two separate types for the same purpose
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts12
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 4673e1f0b..9dd0f0a3f 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -43,7 +43,6 @@ import {
LibtoolVersion,
Logger,
NotificationType,
- PaytoUri,
TalerError,
TalerErrorCode,
TalerErrorDetail,
@@ -56,7 +55,6 @@ import {
TransactionType,
URL,
UnblindedSignature,
- WireAccountDetails,
WithdrawUriInfoResponse,
WithdrawalAccountInfo,
addPaytoQueryParams,
@@ -68,7 +66,6 @@ import {
codecForReserveStatus,
codecForWalletKycUuid,
codecForWithdrawOperationStatusResponse,
- createEddsaKeyPair,
encodeCrock,
getErrorDetailFromException,
getRandomBytes,
@@ -1796,13 +1793,7 @@ export async function getExchangeWithdrawalInfo(
const exchangeWireAccounts: string[] = [];
for (const account of exchangeDetails.wireInfo.accounts) {
- const details: WireAccountDetails = {
- paytoUri: account.payto_uri,
- };
- if (account.credit_restrictions) {
- details.creditRestrictions = account.credit_restrictions;
- }
- exchangeWireAccounts.push(details.paytoUri);
+ exchangeWireAccounts.push(account.payto_uri);
}
let hasDenomWithAgeRestriction = false;
@@ -2629,6 +2620,7 @@ async function fetchWithdrawalAccountInfo(
const acctInfo: WithdrawalAccountInfo = {
paytoUri,
transferAmount,
+ creditRestrictions: acct.credit_restrictions,
};
withdrawalAccounts.push(acctInfo);
}