gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: return effective amount of re


From: gnunet
Subject: [taler-wallet-core] branch master updated: return effective amount of refresh tx
Date: Wed, 17 Jan 2024 19:21:08 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 394f70b91 return effective amount of refresh tx
394f70b91 is described below

commit 394f70b9109f035144867bb003a953fec5924d2d
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Jan 17 15:20:58 2024 -0300

    return effective amount of refresh tx
---
 packages/taler-wallet-core/src/operations/transactions.ts   |  4 +---
 .../taler-wallet-webextension/src/cta/Withdraw/views.tsx    | 13 ++++++-------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/transactions.ts 
b/packages/taler-wallet-core/src/operations/transactions.ts
index d93396ca5..74bc20320 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -770,9 +770,7 @@ function buildTransactionForRefresh(
     txState: computeRefreshTransactionState(refreshGroupRecord),
     txActions: computeRefreshTransactionActions(refreshGroupRecord),
     refreshReason: refreshGroupRecord.reason,
-    amountEffective: Amounts.stringify(
-      Amounts.zeroOfCurrency(refreshGroupRecord.currency),
-    ),
+    amountEffective: Amounts.stringify(Amounts.sub(outputAmount, 
inputAmount).amount),
     amountRaw: Amounts.stringify(
       Amounts.zeroOfCurrency(refreshGroupRecord.currency),
     ),
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx 
b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx
index bd9f75696..8d31223ed 100644
--- a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx
@@ -14,26 +14,25 @@
  GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
  */
 
-import { Amounts, ExchangeTosStatus } from "@gnu-taler/taler-util";
-import { Fragment, h, VNode } from "preact";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
+import { Fragment, VNode, h } from "preact";
 import { useState } from "preact/hooks";
 import { Amount } from "../../components/Amount.js";
+import { AmountField } from "../../components/AmountField.js";
 import { Part } from "../../components/Part.js";
 import { QR } from "../../components/QR.js";
 import { SelectList } from "../../components/SelectList.js";
-import { Input, LinkSuccess, SvgIcon, WarningBox } from 
"../../components/styled/index.js";
 import { TermsOfService } from "../../components/TermsOfService/index.js";
-import { useTranslationContext } from "@gnu-taler/web-util/browser";
+import { Input, LinkSuccess, SvgIcon, WarningBox } from 
"../../components/styled/index.js";
 import { Button } from "../../mui/Button.js";
+import { Grid } from "../../mui/Grid.js";
 import editIcon from "../../svg/edit_24px.inline.svg";
 import {
   ExchangeDetails,
-  getAmountWithFee,
   WithdrawDetails,
+  getAmountWithFee,
 } from "../../wallet/Transaction.js";
 import { State } from "./index.js";
-import { Grid } from "../../mui/Grid.js";
-import { AmountField } from "../../components/AmountField.js";
 
 export function FinalStateOperation(state: State.AlreadyCompleted): VNode {
   const { i18n } = useTranslationContext();

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]