gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] branch master updated: -json pack refactoring


From: gnunet
Subject: [taler-taler-mdb] branch master updated: -json pack refactoring
Date: Sun, 01 Aug 2021 22:44:29 +0200

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

grothoff pushed a commit to branch master
in repository taler-mdb.

The following commit(s) were added to refs/heads/master by this push:
     new 9b1ee0b  -json pack refactoring
9b1ee0b is described below

commit 9b1ee0bc440ac0e3eacba749ca3c936940ac8d1d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Aug 1 22:44:27 2021 +0200

    -json pack refactoring
---
 src/main.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/main.c b/src/main.c
index 51b49f5..f4156d8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1577,14 +1577,15 @@ launch_payment (struct Product *product)
   }
   else
   {
-    orderReq = json_pack ("{ s:s, s:o, s:s, s:o }",
-                          "summary",
-                          product->description,
-                          "amount", TALER_JSON_from_amount (&product->price),
-                          "fulfillment_message", msg,
-                          "auto_refund", GNUNET_JSON_from_time_rel (
-                            MAX_REFUND_DELAY)
-                          );
+    orderReq = GNUNET_JSON_PACK (
+      GNUNET_JSON_pack_string ("summary",
+                               product->description),
+      TALER_JSON_pack_amount ("amount",
+                              &product->price),
+      GNUNET_JSON_pack_string ("fulfillment_message",
+                               msg),
+      GNUNET_JSON_pack_time_rel ("auto_refund",
+                                 MAX_REFUND_DELAY));
   }
   GNUNET_free (msg);
   if (NULL == orderReq)

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