CONTRIBUTION - Update tut-two-party-flow.rst (#3133)

Bug: https://github.com/corda/corda/issues/3120
Updated line 55: From: IOUContract.Commands.Create -> IOUContract.Create
This commit is contained in:
kid101 2018-05-14 16:39:53 +05:30 committed by Katelyn Baker
parent f9a9bb19a7
commit 37656a58f5

View File

@ -52,7 +52,7 @@ In the original CorDapp, we automated the process of notarising a transaction an
by invoking a built-in flow called ``FinalityFlow`` as a subflow. We're going to use another pre-defined flow, by invoking a built-in flow called ``FinalityFlow`` as a subflow. We're going to use another pre-defined flow,
``CollectSignaturesFlow``, to gather the borrower's signature. ``CollectSignaturesFlow``, to gather the borrower's signature.
First, we need to update the command. We are now using ``IOUContract.Commands.Create``, rather than First, we need to update the command. We are now using ``IOUContract.Create``, rather than
``TemplateContract.Commands.Action``. We also want to make the borrower a required signer, as per the contract ``TemplateContract.Commands.Action``. We also want to make the borrower a required signer, as per the contract
constraints. This is as simple as adding the borrower's public key to the transaction's command. constraints. This is as simple as adding the borrower's public key to the transaction's command.
@ -149,4 +149,4 @@ You should now be ready to develop your own CorDapps. You can also find a list o
:doc:`Corda API <corda-api>`. :doc:`Corda API <corda-api>`.
If you get stuck at any point, please reach out on `Slack <https://slack.corda.net/>`_ or If you get stuck at any point, please reach out on `Slack <https://slack.corda.net/>`_ or
`Stack Overflow <https://stackoverflow.com/questions/tagged/corda>`_. `Stack Overflow <https://stackoverflow.com/questions/tagged/corda>`_.