mirror of
https://github.com/corda/corda.git
synced 2025-06-19 23:53:52 +00:00
Base types and changes required for the Contract Constraints work.
This commit is contained in:
committed by
Mike Hearn
parent
05e94e7425
commit
0de6994ef5
@ -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) {
|
||||
|
@ -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) })
|
Reference in New Issue
Block a user