summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_helper.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-01 16:07:26 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-01 16:07:26 +0200
commit589efd719a711751a1828ddea0e5d5e269ec0caa (patch)
treea4da09608877c6c2ed19d11779112523de315e5c /src/backend/taler-merchant-httpd_helper.c
parentcdde19794f49b5b022b0987b1d99edc7910f4d00 (diff)
downloadmerchant-589efd719a711751a1828ddea0e5d5e269ec0caa.tar.gz
merchant-589efd719a711751a1828ddea0e5d5e269ec0caa.tar.bz2
merchant-589efd719a711751a1828ddea0e5d5e269ec0caa.zip
-misc fixes, more json_pack converting
Diffstat (limited to 'src/backend/taler-merchant-httpd_helper.c')
-rw-r--r--src/backend/taler-merchant-httpd_helper.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c
index cc6288f9..a8de49f0 100644
--- a/src/backend/taler-merchant-httpd_helper.c
+++ b/src/backend/taler-merchant-httpd_helper.c
@@ -158,9 +158,11 @@ TMH_setup_wire_account (const char *payto_uri)
&salt,
sizeof (salt));
wm = GNUNET_new (struct TMH_WireMethod);
- wm->j_wire = json_pack ("{s:s, s:o}",
- "payto_uri", payto_uri,
- "salt", GNUNET_JSON_from_data_auto (&salt));
+ wm->j_wire = GNUNET_JSON_PACK (
+ GNUNET_JSON_pack_string ("payto_uri",
+ payto_uri),
+ GNUNET_JSON_pack_data_auto ("salt",
+ &salt));
GNUNET_assert (NULL != wm->j_wire);
/* This also tests for things like the IBAN being malformed */
GNUNET_assert (GNUNET_OK ==