mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
Minor: bugfix for the Java requireSingleCommand API.
This commit is contained in:
parent
606926a692
commit
af116f6990
@ -124,7 +124,7 @@ inline fun <reified T : CommandData> List<AuthenticatedObject<CommandData>>.requ
|
||||
|
||||
// For Java
|
||||
fun List<AuthenticatedObject<CommandData>>.requireSingleCommand(klass: Class<out CommandData>) =
|
||||
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<AuthenticatedObject<CommandData>>.getTimestampBy(timestampingAuthority: Party): TimestampCommand? {
|
||||
|
Loading…
Reference in New Issue
Block a user