[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: correct raw/effe
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: correct raw/effective amounts for check-peer-pull-credit |
Date: |
Mon, 20 Feb 2023 04:00:53 +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 2626ed6ad wallet-core: correct raw/effective amounts for
check-peer-pull-credit
2626ed6ad is described below
commit 2626ed6ad00234fe44c8bd54c53c2275b6545f62
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Feb 20 04:00:46 2023 +0100
wallet-core: correct raw/effective amounts for check-peer-pull-credit
---
packages/taler-wallet-core/src/operations/pay-peer.ts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts
b/packages/taler-wallet-core/src/operations/pay-peer.ts
index 6e5f1b89b..ff01342f8 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer.ts
@@ -1425,9 +1425,16 @@ export async function checkPeerPullPaymentInitiation(
throw Error("no exchange found for initiating a peer pull payment");
}
+ const wi = await getExchangeWithdrawalInfo(
+ ws,
+ exchangeUrl,
+ Amounts.parseOrThrow(req.amount),
+ undefined,
+ );
+
return {
exchangeBaseUrl: exchangeUrl,
- amountEffective: req.amount,
+ amountEffective: wi.withdrawalAmountEffective,
amountRaw: req.amount,
};
}
--
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: wallet-core: correct raw/effective amounts for check-peer-pull-credit,
gnunet <=