diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-reserves.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-reserves.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-reserves.c b/src/backend/taler-merchant-httpd_private-post-reserves.c index f4f10973..a720f6c6 100644 --- a/src/backend/taler-merchant-httpd_private-post-reserves.c +++ b/src/backend/taler-merchant-httpd_private-post-reserves.c @@ -313,6 +313,7 @@ TMH_private_post_reserves (const struct TMH_RequestHandler *rh, GNUNET_JSON_spec_string ("wire_method", &wire_method), TALER_JSON_spec_amount ("initial_balance", + TMH_currency, &rc->initial_balance), GNUNET_JSON_spec_end () }; @@ -324,17 +325,6 @@ TMH_private_post_reserves (const struct TMH_RequestHandler *rh, ? MHD_YES : MHD_NO; } - if (0 != - strcasecmp (rc->initial_balance.currency, - TMH_currency)) - { - GNUNET_break_op (0); - return TALER_MHD_reply_with_error ( - connection, - MHD_HTTP_CONFLICT, - TALER_EC_GENERIC_CURRENCY_MISMATCH, - TMH_currency); - } rc->fo = TMH_EXCHANGES_find_exchange (rc->exchange_url, wire_method, GNUNET_NO, |