From 793c57317a90ec936a0649c79211ca34215c38fc Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 20 Nov 2018 13:32:02 +0100 Subject: Offer contract terms trait as a JSON object. --- src/auditor-lib/testing_auditor_api_cmd_deposit_confirmation.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/auditor-lib') diff --git a/src/auditor-lib/testing_auditor_api_cmd_deposit_confirmation.c b/src/auditor-lib/testing_auditor_api_cmd_deposit_confirmation.c index 9a5c0bfb..6a6e9857 100644 --- a/src/auditor-lib/testing_auditor_api_cmd_deposit_confirmation.c +++ b/src/auditor-lib/testing_auditor_api_cmd_deposit_confirmation.c @@ -206,7 +206,6 @@ deposit_confirmation_run (void *cls, const struct TALER_CoinSpendPrivateKeyP *coin_priv; const struct TALER_EXCHANGE_Keys *keys; const struct TALER_EXCHANGE_SigningPublicKey *spk; - const char *contract_terms_s; dcs->is = is; GNUNET_assert (NULL != dcs->deposit_reference); @@ -236,15 +235,11 @@ deposit_confirmation_run (void *cls, GNUNET_assert (GNUNET_OK == TALER_TESTING_get_trait_contract_terms (deposit_cmd, dcs->coin_index, - &contract_terms_s)); - contract_terms = json_loads (contract_terms_s, - JSON_REJECT_DUPLICATES, - NULL); + &contract_terms)); /* Very unlikely to fail */ GNUNET_assert (NULL != contract_terms); TALER_JSON_hash (contract_terms, &h_contract_terms); - json_decref (contract_terms); GNUNET_assert (GNUNET_OK == TALER_TESTING_get_trait_wire_details (deposit_cmd, dcs->coin_index, -- cgit v1.2.3