From b57b15a5eefea6f35724e95a351367b5f3e1bd0f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Oct 2023 20:58:06 +0200 Subject: more work on DD51 --- src/lib/exchange_api_handle.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 6009b7c10..811120a85 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -864,9 +864,9 @@ decode_keys_json (const json_t *resp_obj, GNUNET_JSON_spec_string ( "currency", ¤cy), - GNUNET_JSON_spec_uint32 ( - "currency_fraction_digits", - &key_data->currency_fraction_digits), + TALER_JSON_spec_currency_specification ( + "currency_specification", + &key_data->cspec), GNUNET_JSON_spec_string ( "asset_type", &asset_type), @@ -2381,8 +2381,9 @@ TALER_EXCHANGE_keys_to_json (const struct TALER_EXCHANGE_Keys *kd) kd->version), GNUNET_JSON_pack_string ("currency", kd->currency), - GNUNET_JSON_pack_uint64 ("currency_fraction_digits", - kd->currency_fraction_digits), + GNUNET_JSON_pack_object_steal ("currency_specification", + TALER_CONFIG_currency_specs_to_json ( + &kd->cspec)), TALER_JSON_pack_amount ("stefan_abs", &kd->stefan_abs), TALER_JSON_pack_amount ("stefan_log", -- cgit v1.2.3