summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-transfers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-transfers.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-transfers.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-transfers.c b/src/backend/taler-merchant-httpd_private-post-transfers.c
index 0e3f798e..a9a0da75 100644
--- a/src/backend/taler-merchant-httpd_private-post-transfers.c
+++ b/src/backend/taler-merchant-httpd_private-post-transfers.c
@@ -959,6 +959,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
/* First request, parse it! */
struct GNUNET_JSON_Specification spec[] = {
TALER_JSON_spec_amount ("credit_amount",
+ TMH_currency,
&ptc->amount),
GNUNET_JSON_spec_fixed_auto ("wtid",
&ptc->wtid),
@@ -977,17 +978,6 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh,
return (GNUNET_NO == res)
? MHD_YES
: MHD_NO;
- if (0 !=
- strcasecmp (ptc->amount.currency,
- TMH_currency))
- {
- GNUNET_break_op (0);
- return TALER_MHD_reply_with_error (
- connection,
- MHD_HTTP_CONFLICT,
- TALER_EC_GENERIC_CURRENCY_MISMATCH,
- TMH_currency);
- }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"New inbound wire transfer over %s to %s from %s\n",
TALER_amount2s (&ptc->amount),