summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_patch_product.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-24 19:54:50 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-24 19:54:50 +0200
commit0fa2888bc7d1095a2341e16eda59cb5085b78b67 (patch)
treec27104816a49f7906704a8de6f0fe2289bb6df32 /src/testing/testing_api_cmd_patch_product.c
parent874f09525fee53e8a69f040cd3cf9b4f369fdee5 (diff)
downloadmerchant-0fa2888bc7d1095a2341e16eda59cb5085b78b67.tar.gz
merchant-0fa2888bc7d1095a2341e16eda59cb5085b78b67.tar.bz2
merchant-0fa2888bc7d1095a2341e16eda59cb5085b78b67.zip
improve API
Diffstat (limited to 'src/testing/testing_api_cmd_patch_product.c')
-rw-r--r--src/testing/testing_api_cmd_patch_product.c6
1 files changed, 4 insertions, 2 deletions
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;