mirror of
https://github.com/corda/corda.git
synced 2025-02-20 17:33:15 +00:00
Merge branch 'arri_fix_tutorial_contract'
This commit is contained in:
commit
f52856deaa
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user