Changed type from PublicKey -> AbstractParty to match fun declaration

This commit is contained in:
Alberto Arri 2017-08-11 14:22:39 +01:00
parent 14afb04fa0
commit 86784d36b7

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