summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_patch_instance.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_instance.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_instance.c')
-rw-r--r--src/testing/testing_api_cmd_patch_instance.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_patch_instance.c b/src/testing/testing_api_cmd_patch_instance.c
index 0d589bb2..a198829a 100644
--- a/src/testing/testing_api_cmd_patch_instance.c
+++ b/src/testing/testing_api_cmd_patch_instance.c
@@ -237,9 +237,9 @@ TALER_TESTING_cmd_merchant_patch_instance (
const char *name,
json_t *address,
json_t *jurisdiction,
- const struct TALER_Amount *default_max_wire_fee,
+ const char *default_max_wire_fee,
uint32_t default_wire_fee_amortization,
- const struct TALER_Amount *default_max_deposit_fee,
+ const char *default_max_deposit_fee,
struct GNUNET_TIME_Relative default_wire_transfer_delay,
struct GNUNET_TIME_Relative default_pay_delay,
unsigned int http_status)
@@ -255,9 +255,13 @@ TALER_TESTING_cmd_merchant_patch_instance (
pis->name = name;
pis->address = address; /* ownership transfer! */
pis->jurisdiction = jurisdiction; /* ownership transfer! */
- pis->default_max_wire_fee = *default_max_wire_fee;
+ GNUNET_assert (GNUNET_OK ==
+ TALER_string_to_amount (default_max_wire_fee,
+ &pis->default_max_wire_fee));
pis->default_wire_fee_amortization = default_wire_fee_amortization;
- pis->default_max_deposit_fee = *default_max_deposit_fee;
+ GNUNET_assert (GNUNET_OK ==
+ TALER_string_to_amount (default_max_deposit_fee,
+ &pis->default_max_deposit_fee));
pis->default_wire_transfer_delay = default_wire_transfer_delay;
pis->default_pay_delay = default_pay_delay;
{