Skip to content

Instantly share code, notes, and snippets.

@lankydan
Created June 14, 2019 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lankydan/b7c561f48123e8aa9394731b05683175 to your computer and use it in GitHub Desktop.
Save lankydan/b7c561f48123e8aa9394731b05683175 to your computer and use it in GitHub Desktop.
Preventing invalid spending of broadcasted states - MessageState
@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