exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a04da78d3ec223e9785f7a6e82367f0cd41bce1e
parent af4597684822a7a8f743aa42d525f0f567276945
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 14 Jan 2025 23:31:59 +0100

-fix more JSON packers

Diffstat:
Msrc/lib/exchange_api_age_withdraw.c | 4+---
Msrc/lib/exchange_api_age_withdraw_reveal.c | 4+---
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/exchange_api_age_withdraw.c b/src/lib/exchange_api_age_withdraw.c @@ -567,9 +567,7 @@ perform_protocol ( /* The mask must be the same for all coins */ FAIL_IF (awbh->age_mask.bits != denom_pub->key.age_mask.bits); - jdenom = GNUNET_JSON_PACK ( - GNUNET_JSON_pack_data_auto (NULL, - denom_h)); + jdenom = GNUNET_JSON_from_data_auto (denom_h); FAIL_IF (NULL == jdenom); FAIL_IF (0 > json_array_append_new (j_denoms, jdenom)); diff --git a/src/lib/exchange_api_age_withdraw_reveal.c b/src/lib/exchange_api_age_withdraw_reveal.c @@ -388,9 +388,7 @@ perform_protocol ( if (awrh->noreveal_index == k) continue; - j_sec = GNUNET_JSON_PACK ( - GNUNET_JSON_pack_data_auto (NULL, secret)); - + j_sec = GNUNET_JSON_from_data_auto (secret); FAIL_IF (NULL == j_sec); FAIL_IF (0 < json_array_append_new (j_secrets, j_sec));