mirror of
https://github.com/corda/corda.git
synced 2025-06-19 23:53:52 +00:00
Fixed several bugs in the contract constraints work (#1695)
* Added schedulable flows to cordapp scanning * Fixed a bug where the core flows are included in every cordapp. * Added a test to prove the scheduled flows are loaded correctly. * Enabled a negative test to prove that we are not currently dynamically loading attachment classes from the network.
This commit is contained in:
@ -14,7 +14,7 @@ class MockCordappProvider(cordappLoader: CordappLoader) : CordappProviderImpl(co
|
||||
val cordappRegistry = mutableListOf<Pair<Cordapp, AttachmentId>>()
|
||||
|
||||
fun addMockCordapp(contractClassName: ContractClassName, services: ServiceHub) {
|
||||
val cordapp = CordappImpl(listOf(contractClassName), emptyList(), emptyList(), emptyList(), emptyList(), emptySet(), Paths.get(".").toUri().toURL())
|
||||
val cordapp = CordappImpl(listOf(contractClassName), emptyList(), emptyList(), emptyList(), emptyList(), emptyList(), emptySet(), Paths.get(".").toUri().toURL())
|
||||
if (cordappRegistry.none { it.first.contractClassNames.contains(contractClassName) }) {
|
||||
cordappRegistry.add(Pair(cordapp, findOrImportAttachment(contractClassName.toByteArray(), services)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user