Skip to content

Instantly share code, notes, and snippets.

@akegaviar
Created August 17, 2020 07:16
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 akegaviar/2a1bf6ff4cba4d6e9c1ed5f249e62326 to your computer and use it in GitHub Desktop.
Save akegaviar/2a1bf6ff4cba4d6e9c1ed5f249e62326 to your computer and use it in GitHub Desktop.
package com.helloBlock.states
import com.helloBlock.contracts.helloBlockContract
import net.corda.core.contracts.BelongsToContract
import net.corda.core.contracts.ContractState
import net.corda.core.identity.Party
// *********
// * State *
// *********
@BelongsToContract(helloBlockContract::class)
data class helloBlockState(val origin: Party,
val target: Party,
val helloBlock: String = "Hello, Block!") : ContractState {
override val participants get() = listOf(target)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment