aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-08 20:58:06 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-08 20:58:06 +0200
commitb57b15a5eefea6f35724e95a351367b5f3e1bd0f (patch)
tree2626a6f1566981fa7e8c6c56e9bc7bc72bf4583d /src/lib
parentda30a706a864661d85f40d4a5b03f6a9e9e0aa7b (diff)
more work on DD51
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_handle.c11
1 files changed, 6 insertions, 5 deletions
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",
&currency),
- 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",