summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-11 21:06:30 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-11 21:06:30 +0200
commit44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4 (patch)
treeaab79cc966bad591aadc7f4b469d816a9e261229 /src/testing/testing_api_cmd_deposit.c
parent88bb7f44281a9f8a9474a242f0e2557fed9da781 (diff)
downloadexchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.tar.gz
exchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.tar.bz2
exchange-44272bf1cee4312d8d9c83eedc34dbb63fa1c0a4.zip
adapations to GNUnet API change
Diffstat (limited to 'src/testing/testing_api_cmd_deposit.c')
-rw-r--r--src/testing/testing_api_cmd_deposit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c
index c251aada3..9468e7acb 100644
--- a/src/testing/testing_api_cmd_deposit.c
+++ b/src/testing/testing_api_cmd_deposit.c
@@ -581,7 +581,6 @@ TALER_TESTING_cmd_deposit (const char *label,
{
struct DepositState *ds;
json_t *wire_details;
- struct GNUNET_CRYPTO_EddsaPrivateKey *merchant_priv;
wire_details = TALER_TESTING_make_wire_details (target_account_payto);
ds = GNUNET_new (struct DepositState);
@@ -591,9 +590,7 @@ TALER_TESTING_cmd_deposit (const char *label,
ds->contract_terms = json_loads (contract_terms,
JSON_REJECT_DUPLICATES,
NULL);
- merchant_priv = GNUNET_CRYPTO_eddsa_key_create ();
- ds->merchant_priv.eddsa_priv = *merchant_priv;
- GNUNET_free (merchant_priv);
+ GNUNET_CRYPTO_eddsa_key_create (&ds->merchant_priv.eddsa_priv);
if (NULL == ds->contract_terms)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,