From 42decef957861689c41d16a0dcfa8af3d9052816 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 24 Jul 2021 09:00:35 +0200 Subject: fix #6939 in exchange --- .../taler-auditor-httpd_deposit-confirmation.c | 40 +++++++++++++++------- 1 file changed, 27 insertions(+), 13 deletions(-) (limited to 'src/auditor/taler-auditor-httpd_deposit-confirmation.c') diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c index 5c1ee9f03..31d7a7195 100644 --- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c +++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c @@ -259,21 +259,35 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler *rh, struct TALER_AUDITORDB_DepositConfirmation dc; struct TALER_AUDITORDB_ExchangeSigningKey es; struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_fixed_auto ("h_contract_terms", &dc.h_contract_terms), - GNUNET_JSON_spec_fixed_auto ("h_wire", &dc.h_wire), + GNUNET_JSON_spec_fixed_auto ("h_contract_terms", + &dc.h_contract_terms), + GNUNET_JSON_spec_fixed_auto ("h_wire", + &dc.h_wire), TALER_JSON_spec_absolute_time ("exchange_timestamp", &dc.exchange_timestamp), - TALER_JSON_spec_absolute_time ("refund_deadline", &dc.refund_deadline), - TALER_JSON_spec_amount ("amount_without_fee", &dc.amount_without_fee), - GNUNET_JSON_spec_fixed_auto ("coin_pub", &dc.coin_pub), - GNUNET_JSON_spec_fixed_auto ("merchant_pub", &dc.merchant), - GNUNET_JSON_spec_fixed_auto ("exchange_sig", &dc.exchange_sig), - GNUNET_JSON_spec_fixed_auto ("exchange_pub", &dc.exchange_pub), - GNUNET_JSON_spec_fixed_auto ("master_pub", &es.master_public_key), - TALER_JSON_spec_absolute_time ("ep_start", &es.ep_start), - TALER_JSON_spec_absolute_time ("ep_expire", &es.ep_expire), - TALER_JSON_spec_absolute_time ("ep_end", &es.ep_end), - GNUNET_JSON_spec_fixed_auto ("master_sig", &es.master_sig), + TALER_JSON_spec_absolute_time ("refund_deadline", + &dc.refund_deadline), + TALER_JSON_spec_amount ("amount_without_fee", + TAH_currency, + &dc.amount_without_fee), + GNUNET_JSON_spec_fixed_auto ("coin_pub", + &dc.coin_pub), + GNUNET_JSON_spec_fixed_auto ("merchant_pub", + &dc.merchant), + GNUNET_JSON_spec_fixed_auto ("exchange_sig", + &dc.exchange_sig), + GNUNET_JSON_spec_fixed_auto ("exchange_pub", + &dc.exchange_pub), + GNUNET_JSON_spec_fixed_auto ("master_pub", + &es.master_public_key), + TALER_JSON_spec_absolute_time ("ep_start", + &es.ep_start), + TALER_JSON_spec_absolute_time ("ep_expire", + &es.ep_expire), + TALER_JSON_spec_absolute_time ("ep_end", + &es.ep_end), + GNUNET_JSON_spec_fixed_auto ("master_sig", + &es.master_sig), GNUNET_JSON_spec_end () }; -- cgit v1.2.3