summaryrefslogtreecommitdiff
path: root/src/lib/auditor_api_deposit_confirmation.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-01-28 16:48:27 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-01-28 16:48:27 +0100
commit64de8a0fe6cffc0ffe35083397981618ff7bd78f (patch)
tree4f09496f91c1f4c2e7eba95e76db0d782ca2cd66 /src/lib/auditor_api_deposit_confirmation.c
parent32a47928e94b77aaa8c0e47f0b0f395517e28780 (diff)
downloadexchange-64de8a0fe6cffc0ffe35083397981618ff7bd78f.tar.gz
exchange-64de8a0fe6cffc0ffe35083397981618ff7bd78f.tar.bz2
exchange-64de8a0fe6cffc0ffe35083397981618ff7bd78f.zip
Fix /deposit-confirmation as per JSON encode/decode.
Diffstat (limited to 'src/lib/auditor_api_deposit_confirmation.c')
-rw-r--r--src/lib/auditor_api_deposit_confirmation.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/auditor_api_deposit_confirmation.c b/src/lib/auditor_api_deposit_confirmation.c
index 8734b87b..c34890e6 100644
--- a/src/lib/auditor_api_deposit_confirmation.c
+++ b/src/lib/auditor_api_deposit_confirmation.c
@@ -309,8 +309,8 @@ TALER_AUDITOR_deposit_confirmation (struct TALER_AUDITOR_Handle *auditor,
" s:o, s:o," /* merchant_pub, exchange_sig */
" s:o, s:o," /* master_pub, ep_start */
" s:o, s:o," /* ep_expire, ep_end */
- " s:o}", /* master_sig */
- "h_wire", GNUNET_JSON_from_data_auto (&h_wire),
+ " s:o, s:o}", /* master_sig, exchange_pub */
+ "h_wire", GNUNET_JSON_from_data_auto (h_wire),
"h_contract_terms", GNUNET_JSON_from_data_auto (h_contract_terms),
"timestamp", GNUNET_JSON_from_time_abs (timestamp),
"refund_deadline", GNUNET_JSON_from_time_abs (refund_deadline),
@@ -322,7 +322,9 @@ TALER_AUDITOR_deposit_confirmation (struct TALER_AUDITOR_Handle *auditor,
"ep_start", GNUNET_JSON_from_time_abs (ep_start),
"ep_expire", GNUNET_JSON_from_time_abs (ep_expire),
"ep_end", GNUNET_JSON_from_time_abs (ep_end),
- "master_sig", GNUNET_JSON_from_data_auto (master_sig));
+ "master_sig", GNUNET_JSON_from_data_auto (master_sig),
+ "exchange_pub", GNUNET_JSON_from_data_auto (exchange_pub));
+
if (NULL == deposit_confirmation_obj)
{
GNUNET_break (0);