StatesAndContracts.kt is now TemplateContract.kt (#4972)

This commit is contained in:
Cais Manai 2019-04-26 19:53:30 +01:00 committed by Shams Asari
parent f7bf1b41e0
commit 188fbd24c2

View File

@ -58,7 +58,7 @@ later is often as simple as adding an additional property to your class definiti
Defining IOUState Defining IOUState
----------------- -----------------
Let's get started by opening ``TemplateState.java`` (for Java) or ``StatesAndContracts.kt`` (for Kotlin) and updating Let's get started by opening ``TemplateState.java`` (for Java) or ``TemplateState.kt`` (for Kotlin) and updating
``TemplateState`` to define an ``IOUState``: ``TemplateState`` to define an ``IOUState``:
.. container:: codeset .. container:: codeset
@ -106,4 +106,4 @@ What about the contract?
If you've read the white paper or Key Concepts section, you'll know that each state has an associated contract that If you've read the white paper or Key Concepts section, you'll know that each state has an associated contract that
imposes invariants on how the state evolves over time. Including a contract isn't crucial for our first CorDapp, so imposes invariants on how the state evolves over time. Including a contract isn't crucial for our first CorDapp, so
we'll just use the empty ``TemplateContract`` and ``TemplateContract.Commands.Action`` command defined by the template we'll just use the empty ``TemplateContract`` and ``TemplateContract.Commands.Action`` command defined by the template
for now. In the next tutorial, we'll implement our own contract and command. for now. In the next tutorial, we'll implement our own contract and command.