Corda - VaultQueryException:请注册实体
Corda - VaultQueryException: Please Register The Entity
根据 R3 documentation:
Tests using the DriverDSL will automatically register your custom schemas if they are in the same project structure as the driver call.
如果自定义架构不是与驱动程序调用相同的项目结构的一部分怎么办?
如果模式是 cordapp 的一部分,那么将它们包含在驱动程序 dsl 的创建中也应该加载它们的模式。
driver(DriverParameters(cordappsForAllNodes = cordappsForPackages("packages")))
根据 R3 documentation:
Tests using the DriverDSL will automatically register your custom schemas if they are in the same project structure as the driver call.
如果自定义架构不是与驱动程序调用相同的项目结构的一部分怎么办?
如果模式是 cordapp 的一部分,那么将它们包含在驱动程序 dsl 的创建中也应该加载它们的模式。
driver(DriverParameters(cordappsForAllNodes = cordappsForPackages("packages")))