From b52b074a8dd119347307f1face35c1c60eb94c44 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 16 Oct 2022 22:18:24 +0200 Subject: wallet-core: show instructed amount as raw amount for withdrawal --- packages/taler-wallet-core/src/operations/withdraw.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 59863101a..6be7c7614 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -932,6 +932,7 @@ async function queryReserve( return; } wg.status = WithdrawalGroupStatus.Ready; + wg.reserveBalanceAmount = Amounts.parse(result.response.balance); await tx.withdrawalGroups.put(wg); }); @@ -1700,6 +1701,7 @@ export async function internalCreateWithdrawalGroup( instructedAmount: amount, timestampStart: now, rawWithdrawalAmount: initialDenomSel.totalWithdrawCost, + effectiveWithdrawalAmount: initialDenomSel.totalCoinValue, secretSeed, reservePriv: reserveKeyPair.priv, reservePub: reserveKeyPair.pub, -- cgit v1.2.3