mirror of
https://github.com/corda/corda.git
synced 2025-02-11 05:12:09 +00:00
Update templateContract.kt
This commit is contained in:
parent
cab7c9badd
commit
d539b6191c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user