gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: make transaction generation work again


From: gnunet
Subject: [libeufin] branch master updated: make transaction generation work again
Date: Sat, 30 Jan 2021 14:58:47 +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 efe096a  make transaction generation work again
efe096a is described below

commit efe096a3c8c6122f0710d272e60e2e35feb32531
Author: Florian Dold <florian@dold.me>
AuthorDate: Sat Jan 30 14:58:12 2021 +0100

    make transaction generation work again
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 5a21ebb..b5e6574 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -443,7 +443,7 @@ fun serverMain(dbName: String, port: Int) {
                 transaction {
                     val accountLabel = ensureNonNull(call.parameters["label"])
                     val account = getBankAccountFromLabel(accountLabel)
-
+                    val transactionReference = getRandomString(8)
                     run {
                         val random = Random.nextLong(0, Long.MAX_VALUE)
                         val amount = Random.nextLong(5, 25)
@@ -455,11 +455,11 @@ fun serverMain(dbName: String, port: Int) {
                             it[debtorIban] = "DE64500105178797276788"
                             it[debtorBic] = "DEUTDEBB101"
                             it[debtorName] = "Max Mustermann"
-                            it[subject] = "sample transaction $random"
+                            it[subject] = "sample transaction 
$transactionReference"
                             it[BankAccountTransactionsTable.amount] = 
amount.toString()
                             it[currency] = account.currency
                             it[date] = Instant.now().toEpochMilli()
-                            it[pmtInfId] = random.toString()
+                            it[accountServicerReference] = transactionReference
                             it[BankAccountTransactionsTable.account] = 
account.id
                             it[direction] = "CRDT"
                         }

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