Base types and changes required for the Contract Constraints work.

This commit is contained in:
Clinton Alexander
2017-09-22 16:56:23 +01:00
committed by Mike Hearn
parent 05e94e7425
commit 0de6994ef5
7 changed files with 54 additions and 3 deletions

View File

@ -15,7 +15,7 @@ import net.corda.testing.schemas.DummyLinearStateSchemaV2
import java.time.LocalDateTime
import java.time.ZoneOffset.UTC
val DUMMY_LINEAR_CONTRACT_PROGRAM_ID = "net.corda.testing.contracts.DummyLinearContract"
const val DUMMY_LINEAR_CONTRACT_PROGRAM_ID = "net.corda.testing.contracts.DummyLinearContract"
class DummyLinearContract : Contract {
override fun verify(tx: LedgerTransaction) {

View File

@ -0,0 +1,9 @@
package net.corda.testing.node
import net.corda.core.crypto.SecureHash
import net.corda.core.internal.AbstractAttachment
/**
* An attachment with only an ID and an empty data array
*/
class MockAttachment(override val id: SecureHash = SecureHash.zeroHash) : AbstractAttachment({ ByteArray(0) })