gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: wallet-core: get rid of Amoun


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: get rid of AmountJson in public API
Date: Wed, 02 Nov 2022 18:25:06 +0100

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

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

The following commit(s) were added to refs/heads/master by this push:
     new 8442452c3 wallet-core: get rid of AmountJson in public API
8442452c3 is described below

commit 8442452c33a05cac86aec8c112e2b5c531280e08
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Nov 2 18:24:50 2022 +0100

    wallet-core: get rid of AmountJson in public API
---
 packages/taler-util/src/wallet-types.ts               | 6 +++---
 packages/taler-wallet-core/src/operations/deposits.ts | 8 +++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/packages/taler-util/src/wallet-types.ts 
b/packages/taler-util/src/wallet-types.ts
index 5d1c55b88..fd41487fd 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1614,9 +1614,9 @@ export interface GetFeeForDepositRequest {
 }
 
 export interface DepositGroupFees {
-  coin: AmountJson;
-  wire: AmountJson;
-  refresh: AmountJson;
+  coin: AmountString;
+  wire: AmountString;
+  refresh: AmountString;
 }
 
 export interface CreateDepositGroupRequest {
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts 
b/packages/taler-wallet-core/src/operations/deposits.ts
index 6ac4f3986..406d658af 100644
--- a/packages/taler-wallet-core/src/operations/deposits.ts
+++ b/packages/taler-wallet-core/src/operations/deposits.ts
@@ -646,8 +646,10 @@ export async function getTotalFeesForDepositAmount(
     });
 
   return {
-    coin: Amounts.sumOrZero(total.currency, coinFee).amount,
-    wire: Amounts.sumOrZero(total.currency, wireFee).amount,
-    refresh: Amounts.sumOrZero(total.currency, refreshFee).amount,
+    coin: Amounts.stringify(Amounts.sumOrZero(total.currency, coinFee).amount),
+    wire: Amounts.stringify(Amounts.sumOrZero(total.currency, wireFee).amount),
+    refresh: Amounts.stringify(
+      Amounts.sumOrZero(total.currency, refreshFee).amount,
+    ),
   };
 }

-- 
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]