[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: check currency so it wont com
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: check currency so it wont compare coins that are not related |
Date: |
Wed, 28 Jun 2023 16:36:27 +0200 |
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 ce3c3d783 check currency so it wont compare coins that are not related
ce3c3d783 is described below
commit ce3c3d78392c25300d0a96e140c6092a6b8a898d
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Jun 28 11:36:21 2023 -0300
check currency so it wont compare coins that are not related
---
packages/taler-wallet-core/src/operations/balance.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/packages/taler-wallet-core/src/operations/balance.ts
b/packages/taler-wallet-core/src/operations/balance.ts
index af88181c0..0fcab0542 100644
--- a/packages/taler-wallet-core/src/operations/balance.ts
+++ b/packages/taler-wallet-core/src/operations/balance.ts
@@ -551,6 +551,9 @@ export async function getPeerPaymentBalanceDetailsInTx(
});
await tx.refreshGroups.iter().forEach((r) => {
+ if (r.currency != req.currency) {
+ return;
+ }
balanceAvailable = Amounts.add(
balanceAvailable,
computeRefreshGroupAvailableAmount(r),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: check currency so it wont compare coins that are not related,
gnunet <=