diff options
Diffstat (limited to 'src/lib/merchant_api_post_reserves.c')
-rw-r--r-- | src/lib/merchant_api_post_reserves.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/merchant_api_post_reserves.c b/src/lib/merchant_api_post_reserves.c index 8a8dee2d..6957d480 100644 --- a/src/lib/merchant_api_post_reserves.c +++ b/src/lib/merchant_api_post_reserves.c @@ -197,11 +197,13 @@ TALER_MERCHANT_reserves_post ( GNUNET_free (prh); return NULL; } - req = json_pack ("{s:o, s:s, s:s}", - "initial_balance", TALER_JSON_from_amount (initial_balance), - "wire_method", wire_method, - "exchange_url", exchange_url); - GNUNET_assert (NULL != req); + req = GNUNET_JSON_PACK ( + TALER_JSON_pack_amount ("initial_balance", + initial_balance), + GNUNET_JSON_pack_string ("wire_method", + wire_method), + GNUNET_JSON_pack_string ("exchange_url", + exchange_url)); eh = curl_easy_init (); GNUNET_assert (NULL != eh); if (GNUNET_OK != TALER_curl_easy_post (&prh->post_ctx, |