commit 7b4cfe1a4c1347d398983abfc731ceeea81a9f60
parent c410fd2f73033f7e178be2642d020e866bed8df0
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 4 Nov 2024 21:38:59 +0100
-bugfix
Diffstat:
1 file 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
@@ -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));