[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: avoid negative number within payment i
From: |
gnunet |
Subject: |
[libeufin] branch master updated: avoid negative number within payment inf id |
Date: |
Sun, 17 Jan 2021 01:09:06 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 2dd39b9 avoid negative number within payment inf id
2dd39b9 is described below
commit 2dd39b93692528b2bebb6e5ff3f3382aceb682d8
Author: Florian Dold <florian@dold.me>
AuthorDate: Sun Jan 17 01:09:03 2021 +0100
avoid negative number within payment inf id
---
nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
index c3dc485..542e237 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/bankaccount/BankAccount.kt
@@ -262,7 +262,7 @@ fun addPaymentInitiation(paymentData: Pain001Data,
debitorAccount: NexusBankAcco
val nowHex = now.toString(16)
val painCounter = debitorAccount.pain001Counter++
val painHex = painCounter.toString(16)
- val acctHex = debitorAccount.id.hashCode().toString(16).substring(0, 4)
+ val acctHex =
debitorAccount.id.hashCode().toLong().toString(16).substring(0, 4)
PaymentInitiationEntity.new {
bankAccount = debitorAccount
subject = paymentData.subject
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: avoid negative number within payment inf id,
gnunet <=