diff options
author | Florian Dold <florian@dold.me> | 2022-10-15 21:26:36 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-15 21:26:36 +0200 |
commit | fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f (patch) | |
tree | b6fb1fc37c67f72e8d2333d76fd1588931d261cb /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | d98d49aa58d59e6d428e5d024ba3f6ea0352ae2a (diff) | |
download | wallet-core-fbb7dd9e7e7fe4cf0611f5827f0bd250634dc29f.tar.xz |
wallet-core, wallet-cli: add status to exchange list, add detail query to CLI
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 1113fb87a..59863101a 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -85,6 +85,7 @@ import { InternalWalletState } from "../internal-wallet-state.js"; import { getExchangeTosStatus, makeCoinAvailable, + makeExchangeListItem, runOperationWithErrorReporting, } from "../operations/common.js"; import { walletCoreDebugFlags } from "../util/debugFlags.js"; @@ -1367,18 +1368,7 @@ export async function getWithdrawalDetailsForUri( .iter(r.baseUrl) .toArray(); if (exchangeDetails && denominations) { - const tosRecord = await tx.exchangeTos.get([ - exchangeDetails.exchangeBaseUrl, - exchangeDetails.tosCurrentEtag, - ]); - exchanges.push({ - exchangeBaseUrl: exchangeDetails.exchangeBaseUrl, - currency: exchangeDetails.currency, - paytoUris: exchangeDetails.wireInfo.accounts.map( - (x) => x.payto_uri, - ), - tosStatus: getExchangeTosStatus(exchangeDetails), - }); + exchanges.push(makeExchangeListItem(r, exchangeDetails)); } } }); |