[CORDA-2851] - Fix the way serialization whitelist is calculated for CordappImpl (#4743)

This commit is contained in:
Dimos Raptis
2019-04-11 11:53:13 +01:00
committed by Shams Asari
parent e61a8424da
commit a38891fc44
2 changed files with 14 additions and 2 deletions

View File

@ -41,7 +41,7 @@ data class CordappImpl(
// TODO: Also add [SchedulableFlow] as a Cordapp class
override val cordappClasses: List<String> = run {
val classList = rpcFlows + initiatedFlows + services + serializationWhitelists.map { javaClass } + notaryService
val classList = rpcFlows + initiatedFlows + services + serializationWhitelists.flatMap { it.whitelist } + notaryService
classList.mapNotNull { it?.name } + contractClassNames + explicitCordappClasses
}