diff --git a/src/main/kotlin/core/ContractsDSL.kt b/src/main/kotlin/core/ContractsDSL.kt index c16fbe4953..ed7f8c9fb4 100644 --- a/src/main/kotlin/core/ContractsDSL.kt +++ b/src/main/kotlin/core/ContractsDSL.kt @@ -124,7 +124,7 @@ inline fun List>.requ // For Java fun List>.requireSingleCommand(klass: Class) = - filter { klass.isInstance(it) }.single() + filter { klass.isInstance(it.value) }.single() /** Returns a timestamp that was signed by the given authority, or returns null if missing. */ fun List>.getTimestampBy(timestampingAuthority: Party): TimestampCommand? {