diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-11-20 13:32:02 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-11-20 13:32:02 +0100 |
commit | 793c57317a90ec936a0649c79211ca34215c38fc (patch) | |
tree | a1f2580d0b37d1eb231a5538fe282a271aca3cd7 /src/auditor-lib | |
parent | d3f73936ae5b5797531db8fe5e6b82cdd1e01ce3 (diff) |
Offer contract terms trait as a JSON object.
Diffstat (limited to 'src/auditor-lib')
-rw-r--r-- | src/auditor-lib/testing_auditor_api_cmd_deposit_confirmation.c | 7 |
1 files changed, 1 insertions, 6 deletions
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 9a5c0bfb2..6a6e98571 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, |