Update templateContract.kt

This commit is contained in:
Joel Dudley 2018-10-22 08:00:13 +02:00 committed by GitHub
parent cab7c9badd
commit d539b6191c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,9 +4,12 @@ import net.corda.core.contracts.CommandData
import net.corda.core.contracts.Contract
import net.corda.core.transactions.LedgerTransaction
val TEMPLATE_CONTRACT_ID = "com.template.TemplateContract"
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
// and output states does not throw an exception.
override fun verify(tx: LedgerTransaction) {