From 0fa2888bc7d1095a2341e16eda59cb5085b78b67 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 24 Apr 2020 19:54:50 +0200 Subject: improve API --- src/testing/testing_api_cmd_patch_product.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/testing/testing_api_cmd_patch_product.c') diff --git a/src/testing/testing_api_cmd_patch_product.c b/src/testing/testing_api_cmd_patch_product.c index 8088932d..ec4bb4c4 100644 --- a/src/testing/testing_api_cmd_patch_product.c +++ b/src/testing/testing_api_cmd_patch_product.c @@ -243,7 +243,7 @@ TALER_TESTING_cmd_merchant_patch_product ( const char *description, json_t *description_i18n, const char *unit, - const struct TALER_Amount *price, + const char *price, json_t *image, json_t *taxes, int64_t total_stocked, @@ -261,7 +261,9 @@ TALER_TESTING_cmd_merchant_patch_product ( pis->description = description; pis->description_i18n = description_i18n; /* ownership taken */ pis->unit = unit; - pis->price = *price; + GNUNET_assert (GNUNET_OK == + TALER_string_to_amount (price, + &pis->price)); pis->image = image; /* ownership taken */ pis->taxes = taxes; /* ownership taken */ pis->total_stocked = total_stocked; -- cgit v1.2.3