summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_get_instance.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-08-22 23:15:08 +0200
committerChristian Grothoff <christian@grothoff.org>2023-08-22 23:15:08 +0200
commitc98d960d1badd1eeb834bacbc133960e2f86d304 (patch)
treefc94b246475ff387cf5aa4d8bbc3f0aa2f4b7d65 /src/testing/testing_api_cmd_get_instance.c
parent525426db10c179fcacd19487f6c22cac837b2d40 (diff)
downloadmerchant-c98d960d1badd1eeb834bacbc133960e2f86d304.tar.gz
merchant-c98d960d1badd1eeb834bacbc133960e2f86d304.tar.bz2
merchant-c98d960d1badd1eeb834bacbc133960e2f86d304.zip
add currency to amounts in merchant DB
Diffstat (limited to 'src/testing/testing_api_cmd_get_instance.c')
-rw-r--r--src/testing/testing_api_cmd_get_instance.c53
1 files changed, 5 insertions, 48 deletions
diff --git a/src/testing/testing_api_cmd_get_instance.c b/src/testing/testing_api_cmd_get_instance.c
index 1df08348..e706f85b 100644
--- a/src/testing/testing_api_cmd_get_instance.c
+++ b/src/testing/testing_api_cmd_get_instance.c
@@ -237,59 +237,16 @@ get_instance_cb (void *cls,
}
}
{
- const struct TALER_Amount *default_max_wire_fee;
+ const bool *use_stefan;
if (GNUNET_OK !=
- TALER_TESTING_get_trait_max_wire_fee (instance_cmd,
- &default_max_wire_fee))
+ TALER_TESTING_get_trait_use_stefan (instance_cmd,
+ &use_stefan))
TALER_TESTING_interpreter_fail (gis->is);
- if ((GNUNET_OK !=
- TALER_amount_cmp_currency (
- &details->default_max_wire_fee,
- default_max_wire_fee)) ||
- (0 != TALER_amount_cmp (&details->default_max_wire_fee,
- default_max_wire_fee)))
+ if (*use_stefan != details->use_stefan)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Instance default max wire fee does not match\n");
- TALER_TESTING_interpreter_fail (gis->is);
- return;
- }
- }
- {
- const uint32_t *default_wire_fee_amortization;
-
- if (GNUNET_OK !=
- TALER_TESTING_get_trait_wire_fee_amortization (
- instance_cmd,
- &default_wire_fee_amortization))
- TALER_TESTING_interpreter_fail (gis->is);
- if (details->default_wire_fee_amortization !=
- *default_wire_fee_amortization)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Instance default wire fee amortization does not match\n");
- TALER_TESTING_interpreter_fail (gis->is);
- return;
- }
- }
- {
- const struct TALER_Amount *default_max_deposit_fee;
-
- if (GNUNET_OK !=
- TALER_TESTING_get_trait_max_deposit_fee (instance_cmd,
- &default_max_deposit_fee))
- TALER_TESTING_interpreter_fail (gis->is);
- if ( (GNUNET_OK !=
- TALER_amount_cmp_currency (
- &details->default_max_deposit_fee,
- default_max_deposit_fee)) ||
- (0 != TALER_amount_cmp (&details->default_max_deposit_fee,
- default_max_deposit_fee)) )
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Instance default max deposit fee %s does not match\n",
- TALER_amount2s (&details->default_max_deposit_fee));
+ "Instance use_stefan value does not match\n");
TALER_TESTING_interpreter_fail (gis->is);
return;
}