mirror of
https://github.com/corda/corda.git
synced 2025-06-23 01:19:00 +00:00
Updates tutorial code to match template changes.
This commit is contained in:
@ -4,9 +4,12 @@ import net.corda.core.contracts.CommandData
|
|||||||
import net.corda.core.contracts.Contract
|
import net.corda.core.contracts.Contract
|
||||||
import net.corda.core.transactions.LedgerTransaction
|
import net.corda.core.transactions.LedgerTransaction
|
||||||
|
|
||||||
val TEMPLATE_CONTRACT_ID = "com.template.TemplateContract"
|
|
||||||
|
|
||||||
open class TemplateContract : Contract {
|
open class TemplateContract : Contract {
|
||||||
|
// This is used to identify our contract when building a transaction.
|
||||||
|
companion object {
|
||||||
|
val ID = "com.template.TemplateContract"
|
||||||
|
}
|
||||||
|
|
||||||
// A transaction is considered valid if the verify() function of the contract of each of the transaction's input
|
// A transaction is considered valid if the verify() function of the contract of each of the transaction's input
|
||||||
// and output states does not throw an exception.
|
// and output states does not throw an exception.
|
||||||
override fun verify(tx: LedgerTransaction) {
|
override fun verify(tx: LedgerTransaction) {
|
||||||
|
Reference in New Issue
Block a user