diff options
author | Florian Dold <florian@dold.me> | 2022-10-16 22:18:24 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-16 22:18:24 +0200 |
commit | b52b074a8dd119347307f1face35c1c60eb94c44 (patch) | |
tree | fb2f9597eaeb95f85c994949cfee0424307bb71e /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 8d4a7d6103032a85c81240d9fb0de32dd44ec435 (diff) | |
download | wallet-core-b52b074a8dd119347307f1face35c1c60eb94c44.tar.xz |
wallet-core: show instructed amount as raw amount for withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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, |