Skip to content

Instantly share code, notes, and snippets.

@amolpednekar
Created January 7, 2019 11:55
Show Gist options
  • Save amolpednekar/3af18461e11975f049f10b8cfc7f27d6 to your computer and use it in GitHub Desktop.
Save amolpednekar/3af18461e11975f049f10b8cfc7f27d6 to your computer and use it in GitHub Desktop.
data class OldState(val a: AbstractParty, val b: AbstractParty) : ContractState {
override val participants get() = listOf(a, b)
}
open class OldContract : Contract {
companion object {
val id = "com.upgrade.OldContract"
}
override fun verify(tx: LedgerTransaction) {}
class Action : TypeOnlyCommandData()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment