Created
June 14, 2019 07:48
-
-
Save lankydan/b7c561f48123e8aa9394731b05683175 to your computer and use it in GitHub Desktop.
Preventing invalid spending of broadcasted states - MessageState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@BelongsToContract(MessageContract::class) | |
data class MessageState( | |
val sender: Party, | |
val recipient: Party, | |
val contents: String, | |
override val linearId: UniqueIdentifier, | |
override val participants: List<Party> = listOf(sender, recipient) | |
) : LinearState |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment