aboutsummaryrefslogtreecommitdiff
path: root/src/lib/testing_api_cmd_track.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-12 23:13:46 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-12 23:13:46 +0100
commit6b0c121fc9818b4cce00bf4540c53cb79d968766 (patch)
tree79426109ec72094c0344e5b8d2112f6fad5bd817 /src/lib/testing_api_cmd_track.c
parent27911aaa17ed6341924e88b3cc2e9a40e23e539c (diff)
clean up string traits"
Diffstat (limited to 'src/lib/testing_api_cmd_track.c')
-rw-r--r--src/lib/testing_api_cmd_track.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/testing_api_cmd_track.c b/src/lib/testing_api_cmd_track.c
index 070218cf..8784e686 100644
--- a/src/lib/testing_api_cmd_track.c
+++ b/src/lib/testing_api_cmd_track.c
@@ -624,8 +624,7 @@ track_transfer_cb
if (NULL != tts->total_amount_reference)
{
const struct TALER_TESTING_Command *total_amount_cmd;
- const char *total_amount_from_reference_str;
- struct TALER_Amount total_amount_from_reference;
+ const struct TALER_Amount *total_amount_from_reference;
if (NULL == (total_amount_cmd
= TALER_TESTING_interpreter_lookup_command
@@ -636,20 +635,18 @@ track_transfer_cb
return;
}
- if (GNUNET_OK != TALER_TESTING_get_trait_amount
- (total_amount_cmd, 0, &total_amount_from_reference_str))
+ if (GNUNET_OK !=
+ TALER_TESTING_get_trait_amount_obj (total_amount_cmd,
+ 0,
+ &total_amount_from_reference))
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
return;
}
- GNUNET_assert (GNUNET_OK == TALER_string_to_amount
- (total_amount_from_reference_str,
- &total_amount_from_reference));
-
if (0 != TALER_amount_cmp (total_amount,
- &total_amount_from_reference))
+ total_amount_from_reference))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Amount missmath to command %s\n",