aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testing/testing_api_cmd_post_transfers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_post_transfers.c b/src/testing/testing_api_cmd_post_transfers.c
index eb247c55..4bec6ec4 100644
--- a/src/testing/testing_api_cmd_post_transfers.c
+++ b/src/testing/testing_api_cmd_post_transfers.c
@@ -75,6 +75,11 @@ struct PostTransfersState
struct TALER_FullPaytoHashP h_payto;
/**
+ * Set to the hash of the normalized @e payto_uri.
+ */
+ struct TALER_NormalizedPaytoHashP h_normalized_payto;
+
+ /**
* Authentication details to authenticate to the bank.
*/
struct TALER_BANK_AuthenticationData auth;
@@ -178,6 +183,7 @@ post_transfers_traits (void *cls,
TALER_TESTING_make_trait_wtid (&pts->wtid),
TALER_TESTING_make_trait_credit_payto_uri (&pts->credit_account),
TALER_TESTING_make_trait_h_full_payto (&pts->h_payto),
+ TALER_TESTING_make_trait_h_normalized_payto (&pts->h_normalized_payto),
TALER_TESTING_make_trait_amount (&pts->credit_amount),
TALER_TESTING_make_trait_exchange_url (pts->exchange_url),
TALER_TESTING_make_trait_bank_row (&pts->serial),
@@ -377,6 +383,8 @@ TALER_TESTING_cmd_merchant_post_transfer (
pts->payto_uri = payto_uri;
TALER_full_payto_hash (payto_uri,
&pts->h_payto);
+ TALER_full_payto_normalize_and_hash (payto_uri,
+ &pts->h_normalized_payto);
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount (credit_amount,
&pts->credit_amount));