summaryrefslogtreecommitdiff
path: root/src/backend-lib/taler_merchant_contract_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend-lib/taler_merchant_contract_lib.h')
-rw-r--r--src/backend-lib/taler_merchant_contract_lib.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/backend-lib/taler_merchant_contract_lib.h b/src/backend-lib/taler_merchant_contract_lib.h
index 9094e223..9bf99cb3 100644
--- a/src/backend-lib/taler_merchant_contract_lib.h
+++ b/src/backend-lib/taler_merchant_contract_lib.h
@@ -85,21 +85,19 @@ MERCHANT_get_wire_json (const struct MERCHANT_WIREFORMAT_Sepa *wire,
* @param edate when the merchant wants to receive the wire transfer corresponding
* to this deal (this value is also a field inside the 'wire' JSON format)
* @param nounce the nounce used to hash the wire details
-* @param contract_str where to store the hashed (stringified) contract
-* @return GNUNET_OK on success; GNUNET_SYSERR upon errors
+* @param contract_str where to store
+* @return pointer to the (stringified) contract; NULL upon errors
*/
/**
* TODO: inspect reference counting and, accordingly, free those json_t*(s)
* still allocated */
-uint32_t
+char *
MERCHANT_handle_contract (const json_t *j_contract,
PGconn *db_conn,
struct Contract *contract,
struct GNUNET_TIME_Absolute timestamp,
struct GNUNET_TIME_Absolute expiry,
struct GNUNET_TIME_Absolute edate,
- uint64_t nounce,
- const char *contract_str);
-
+ uint64_t nounce);