diff options
author | Florian Dold <florian@dold.me> | 2024-06-11 16:39:09 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-11 16:39:09 +0200 |
commit | ce89223b51e71dae83d00fa93a0ab1c09b3c190a (patch) | |
tree | 7e8b47d84cdc7454f237e610e6253e9ad63dfc84 /packages/taler-wallet-core/src/withdraw.ts | |
parent | 77456187e967a81fe77de59a5df42460d54f0972 (diff) | |
download | wallet-core-ce89223b51e71dae83d00fa93a0ab1c09b3c190a.tar.xz |
wallet-core: check that ToS was accepted for certain requests
Diffstat (limited to 'packages/taler-wallet-core/src/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/withdraw.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts index e90aa1dd3..d7a1c6d24 100644 --- a/packages/taler-wallet-core/src/withdraw.ts +++ b/packages/taler-wallet-core/src/withdraw.ts @@ -45,6 +45,7 @@ import { EddsaPrivateKeyString, ExchangeBatchWithdrawRequest, ExchangeListItem, + ExchangeTosStatus, ExchangeUpdateStatus, ExchangeWireAccount, ExchangeWithdrawBatchResponse, @@ -118,6 +119,7 @@ import { genericWaitForState, makeCoinAvailable, makeCoinsVisible, + requireExchangeTosAcceptedOrThrow, } from "./common.js"; import { EddsaKeypair } from "./crypto/cryptoImplementation.js"; import { @@ -3118,6 +3120,7 @@ export async function confirmWithdrawal( } const exchange = await fetchFreshExchange(wex, selectedExchange); + requireExchangeTosAcceptedOrThrow(exchange); const talerWithdrawUri = withdrawalGroup.wgInfo.bankInfo.talerWithdrawUri; const confirmUrl = withdrawalGroup.wgInfo.bankInfo.confirmUrl; |