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_instance.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/testing/testing_api_cmd_patch_instance.c') 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; { -- cgit v1.2.3