summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-07 15:31:55 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-07 15:33:56 +0100
commite4207873a67d913a6994c9fdecebca3726e9425d (patch)
tree798d45c668fc9f8f9a1a989187cb7e57da9b0096 /docs
parentdab82d9e11c3c2705e5aeacc8142023cdd21289a (diff)
downloaddocs-e4207873a67d913a6994c9fdecebca3726e9425d.tar.gz
docs-e4207873a67d913a6994c9fdecebca3726e9425d.tar.bz2
docs-e4207873a67d913a6994c9fdecebca3726e9425d.zip
start using new terminology, remove transaction_id
Diffstat (limited to 'docs')
-rw-r--r--docs/example-essay-store.rst8
-rw-r--r--docs/integration-merchant.rst4
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/example-essay-store.rst b/docs/example-essay-store.rst
index 14cb31dc..c76ce519 100644
--- a/docs/example-essay-store.rst
+++ b/docs/example-essay-store.rst
@@ -355,8 +355,8 @@ case and reconstructs the contract.
contract_resp = sign_contract(restored_contract)
# Return error if uuid mismatch with the hashcode coming from the backend
- if contract_resp["H_contract"] != hc:
- e = jsonify(error="contract mismatch", was=hc, expected=contract_resp["H_contract"])
+ if contract_resp["h_proposal_data"] != hc:
+ e = jsonify(error="contract mismatch", was=hc, expected=contract_resp["h_proposal_data"])
return e, 400
# We save the article's name in the state since after
@@ -576,11 +576,11 @@ to the wallet. See below the main steps of its implementation.
return e, 400
# Pick the contract's hashcode from deposit permission
- hc = deposit_permission.get("H_contract")
+ hc = deposit_permission.get("h_proposal_data")
# Return error if no hashcode was found
if hc is None:
- e = jsonify(error="malformed deposit permission", hint="H_contract missing")
+ e = jsonify(error="malformed deposit permission", hint="h_proposal_data missing")
return e, 400
# Get a handle to the state for this contract, using the
diff --git a/docs/integration-merchant.rst b/docs/integration-merchant.rst
index 7cf93044..53187503 100644
--- a/docs/integration-merchant.rst
+++ b/docs/integration-merchant.rst
@@ -245,8 +245,8 @@ parameters to the wallet, which will:
if 200 == response.status_code:
# Here we pick the article name from the state defined at
# fulfillment time.
- # deposit_permission['H_contract'] is the contract hashcode
- payed_article = session[deposit_permission['H_contract']]['article_name']
+ # deposit_permission['h_proposal_data'] is the contract hashcode
+ payed_article = session[deposit_permission['h_proposal_data']]['article_name']
session['payed_articles'].append(payed_article)