commit ade3ecc398cd68b533ebe297bcf2f36d56f0abbe parent b0a8028c4a14cdf4b420c7472cd0d2137dbc5c38 Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 14 Jan 2025 21:22:10 +0100 fix auditor deposit confirmation get JSON packer Diffstat:
| M | src/auditor/taler-auditor-httpd_deposit-confirmation-get.c | | | 8 | ++------ |
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation-get.c b/src/auditor/taler-auditor-httpd_deposit-confirmation-get.c @@ -55,15 +55,11 @@ add_deposit_confirmation ( json_t *pub; json_t *sig; - pub = GNUNET_JSON_PACK ( - GNUNET_JSON_pack_data_auto (NULL, - &dc->coin_pubs[i])); + pub = GNUNET_JSON_from_data_auto (&dc->coin_pubs[i]); GNUNET_assert (0 == json_array_append_new (coin_pubs_json, pub)); - sig = GNUNET_JSON_PACK ( - GNUNET_JSON_pack_data_auto (NULL, - &dc->coin_sigs[i])); + sig = GNUNET_JSON_from_data_auto (&dc->coin_sigs[i]); GNUNET_assert (0 == json_array_append_new (coin_sigs_json, sig));