Created
August 17, 2020 07:16
-
-
Save akegaviar/2a1bf6ff4cba4d6e9c1ed5f249e62326 to your computer and use it in GitHub Desktop.
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
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