taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 8cfb838934714b3bce5de6938256cbc8990c9e79
parent 38cb5133d63d13138367500eeaee7656fdb0843e
Author: Florian Dold <florian@dold.me>
Date:   Tue,  4 Mar 2025 18:54:36 +0100

wallet-core: don't store reserve origin account for externally confirmed withdrawal

Diffstat:
Mpackages/taler-wallet-core/src/withdraw.ts | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts @@ -2023,7 +2023,12 @@ async function processQueryReserve( return TransitionResult.stay(); } const lastOrigin = result.response.last_origin; - if (lastOrigin != null) { + // If the withdrawal had external confirmation, we don't store the + // bank account details learned via the reserve here. + const externalConfirmation = + wg.wgInfo.withdrawalType === WithdrawalRecordType.BankIntegrated && + wg.wgInfo.bankInfo.externalConfirmation; + if (lastOrigin != null && !externalConfirmation) { await storeKnownBankAccount(tx, currency, lastOrigin); } if (amountChanged) {