Merge branch 'arri_fix_tutorial_contract'

This commit is contained in:
al-r3 2017-08-14 11:22:13 +01:00
commit f52856deaa
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ Where:
* ``OwnableState`` also override the default behavior of the vault's relevancy check. The default vault
implementation will track any ``OwnableState`` of which it is the owner.
* ``withNewOwner(newOwner: PublicKey)`` creates an identical copy of the state, only with a new owner
* ``withNewOwner(newOwner: AbstractParty)`` creates an identical copy of the state, only with a new owner
Other interfaces
^^^^^^^^^^^^^^^^
@ -150,4 +150,4 @@ Where:
* ``data`` is the state to be stored on-ledger
* ``notary`` is the notary service for this state
* ``encumbrance`` points to another state that must also appear as an input to any transaction consuming this
state
state

View File

@ -114,7 +114,7 @@ A state is a class that stores data that is checked by the contract. A commercia
override val participants = listOf(owner)
fun withoutOwner() = copy(owner = AnonymousParty(NullPublicKey))
override fun withNewOwner(newOwner: PublicKey) = Pair(Commands.Move(), copy(owner = newOwner))
override fun withNewOwner(newOwner: AbstractParty) = Pair(Commands.Move(), copy(owner = newOwner))
}
.. sourcecode:: java