diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-24 19:54:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-24 19:54:50 +0200 |
commit | 0fa2888bc7d1095a2341e16eda59cb5085b78b67 (patch) | |
tree | c27104816a49f7906704a8de6f0fe2289bb6df32 /src/testing/testing_api_cmd_patch_product.c | |
parent | 874f09525fee53e8a69f040cd3cf9b4f369fdee5 (diff) | |
download | merchant-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.c | 6 |
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; |