mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +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
|
// For Java
|
||||||
fun List<AuthenticatedObject<CommandData>>.requireSingleCommand(klass: Class<out CommandData>) =
|
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. */
|
/** Returns a timestamp that was signed by the given authority, or returns null if missing. */
|
||||||
fun List<AuthenticatedObject<CommandData>>.getTimestampBy(timestampingAuthority: Party): TimestampCommand? {
|
fun List<AuthenticatedObject<CommandData>>.getTimestampBy(timestampingAuthority: Party): TimestampCommand? {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user