-fix amount packer

This commit is contained in:
Christian Grothoff 2021-07-28 09:46:40 +02:00
parent b9e4431ae6
commit f2b3c4ee72
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -340,7 +340,7 @@ struct MHD_Response *
TALER_MHD_make_error (enum TALER_ErrorCode ec, TALER_MHD_make_error (enum TALER_ErrorCode ec,
const char *detail) const char *detail)
{ {
return TALER_MHD_make_JSON_PACK ( return TALER_MHD_MAKE_JSON_PACK (
GNUNET_JSON_pack_uint64 ("code", ec), GNUNET_JSON_pack_uint64 ("code", ec),
GNUNET_JSON_pack_string ("hint", TALER_ErrorCode_get_hint (ec)), GNUNET_JSON_pack_string ("hint", TALER_ErrorCode_get_hint (ec)),
GNUNET_JSON_pack_allow_null ( GNUNET_JSON_pack_allow_null (
@ -354,7 +354,7 @@ TALER_MHD_reply_with_error (struct MHD_Connection *connection,
enum TALER_ErrorCode ec, enum TALER_ErrorCode ec,
const char *detail) const char *detail)
{ {
return TALER_MHD_reply_JSON_PACK ( return TALER_MHD_REPLY_JSON_PACK (
connection, connection,
http_status, http_status,
GNUNET_JSON_pack_uint64 ("code", ec), GNUNET_JSON_pack_uint64 ("code", ec),