Add BelongsToContract for network verifier state (#4431)

This commit is contained in:
Venelin Stoykov 2018-12-18 15:22:53 +02:00 committed by Viktor Kolomeyko
parent 17e7a3ad7c
commit 86b0e71f3a

View File

@ -1,6 +1,7 @@
package net.corda.verification
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.contracts.BelongsToContract
import net.corda.core.contracts.CommandData
import net.corda.core.contracts.Contract
import net.corda.core.contracts.ContractState
@ -62,6 +63,7 @@ class TestCommsFlowResponder(private val otherSideSession: FlowSession) : FlowLo
}
@CordaSerializable
@BelongsToContract(CommsTestContract::class)
data class CommsTestState(val responses: List<String>, val issuer: AbstractParty) : ContractState {
override val participants: List<AbstractParty>
get() = listOf(issuer)