diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-21 18:36:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-21 18:36:12 +0200 |
commit | 9160245167ded9b2b7c11716dfa1a1e8887187f4 (patch) | |
tree | 64720ebc3b69f84055f25d8a7f309b19b0ebd52a /src/exchange/taler-exchange-httpd_refund.c | |
parent | 922175d3082b138f4973fe11d81327806e68021d (diff) | |
download | exchange-9160245167ded9b2b7c11716dfa1a1e8887187f4.tar.gz exchange-9160245167ded9b2b7c11716dfa1a1e8887187f4.tar.bz2 exchange-9160245167ded9b2b7c11716dfa1a1e8887187f4.zip |
make use of GNUNET_JSON_from_data_auto where possible
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refund.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_refund.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c index b6dc203c0..d8c9a6eed 100644 --- a/src/exchange/taler-exchange-httpd_refund.c +++ b/src/exchange/taler-exchange-httpd_refund.c @@ -56,13 +56,13 @@ verify_and_execute_refund (struct MHD_Connection *connection, dr.purpose.size = htonl (sizeof (struct TALER_RefundRequestPS)); dr.h_contract = refund->h_contract; dr.transaction_id = GNUNET_htonll (refund->transaction_id); + dr.coin_pub = refund->coin.coin_pub; + dr.merchant = refund->merchant_pub; dr.rtransaction_id = GNUNET_htonll (refund->rtransaction_id); TALER_amount_hton (&dr.refund_amount, &refund->refund_amount); TALER_amount_hton (&dr.refund_fee, &refund->refund_fee); - dr.merchant = refund->merchant_pub; - dr.coin_pub = refund->coin.coin_pub; if (GNUNET_YES != TALER_amount_cmp_currency (&refund->refund_amount, &refund->refund_fee) ) |