aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_get_transfers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_get_transfers.c')
-rw-r--r--src/testing/testing_api_cmd_get_transfers.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_get_transfers.c b/src/testing/testing_api_cmd_get_transfers.c
index b5b05295..659ef1d9 100644
--- a/src/testing/testing_api_cmd_get_transfers.c
+++ b/src/testing/testing_api_cmd_get_transfers.c
@@ -53,7 +53,7 @@ struct GetTransfersState
/**
* payto URI of the merchant to filter by.
*/
- const char *payto_uri;
+ struct TALER_FullPayto payto_uri;
/**
* Expected HTTP response code.
@@ -157,7 +157,7 @@ get_transfers_cb (
transfer->credit_serial);
}
{
- const char *payto_uri;
+ const struct TALER_FullPayto *payto_uri;
if (GNUNET_OK !=
TALER_TESTING_get_trait_credit_payto_uri (transfer_cmd,
@@ -168,13 +168,14 @@ get_transfers_cb (
TALER_TESTING_interpreter_fail (gts->is);
return;
}
- if (0 != strcmp (payto_uri,
- transfer->payto_uri))
+ if (0 !=
+ TALER_full_payto_cmp (*payto_uri,
+ transfer->payto_uri))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Wire transfer payto uri does not match: %s != %s\n",
- payto_uri,
- transfer->payto_uri);
+ payto_uri->full_payto,
+ transfer->payto_uri.full_payto);
TALER_TESTING_interpreter_fail (gts->is);
return;
}
@@ -296,7 +297,7 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_merchant_get_transfers (
const char *label,
const char *merchant_url,
- const char *payto_uri,
+ struct TALER_FullPayto payto_uri,
unsigned int http_code,
...)
{