diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 12 |
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); } |