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 --- src/exchange/taler-exchange-httpd_deposit.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/exchange/taler-exchange-httpd_deposit.c') diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 8e93d998d..5e802fb0e 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -332,6 +332,7 @@ TEH_handler_deposit (struct MHD_Connection *connection, struct GNUNET_JSON_Specification spec[] = { GNUNET_JSON_spec_json ("wire", &wire), TALER_JSON_spec_amount ("contribution", + TEH_currency, &deposit.amount_with_fee), GNUNET_JSON_spec_fixed_auto ("denom_pub_hash", &deposit.coin.denom_pub_hash), @@ -488,17 +489,6 @@ TEH_handler_deposit (struct MHD_Connection *connection, } deposit.deposit_fee = dk->meta.fee_deposit; - if (GNUNET_YES != - TALER_amount_cmp_currency (&deposit.amount_with_fee, - &deposit.deposit_fee) ) - { - GNUNET_break_op (0); - GNUNET_JSON_parse_free (spec); - return TALER_MHD_reply_with_error (connection, - MHD_HTTP_BAD_REQUEST, - TALER_EC_GENERIC_CURRENCY_MISMATCH, - deposit.deposit_fee.currency); - } /* check coin signature */ if (GNUNET_YES != TALER_test_coin_valid (&deposit.coin, -- cgit v1.2.3