diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-11-30 00:03:18 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-11-30 00:03:18 +0100 |
commit | 8bc99e1fdcacade9f29fa0b4c44418817f4e5c80 (patch) | |
tree | 82ba98ceb4bfff25a53a7994529479f3b1309eb9 | |
parent | be451502ec5856f0a6da3a3eba49b1297f5cb452 (diff) |
fix contract term json
-rw-r--r-- | src/lib/testing_api_cmd_proposal_lookup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/testing_api_cmd_proposal_lookup.c b/src/lib/testing_api_cmd_proposal_lookup.c index 609e2b7b..41bbfe8f 100644 --- a/src/lib/testing_api_cmd_proposal_lookup.c +++ b/src/lib/testing_api_cmd_proposal_lookup.c @@ -136,7 +136,9 @@ proposal_lookup_cb (void *cls, TALER_TESTING_FAIL (pls->is); if (MHD_HTTP_OK == http_status) { - pls->contract_terms = (json_t*) json; + pls->contract_terms = json_object_get (json, "contract_terms"); + if (NULL == pls->contract_terms) + TALER_TESTING_FAIL (pls->is); json_incref (pls->contract_terms); pls->contract_terms_hash = *hash; } |