mirror of
https://github.com/corda/corda.git
synced 2025-06-18 07:08:15 +00:00
Test DSL: update tests to handle new transaction constraints
This commit is contained in:
@ -289,7 +289,7 @@ abstract class TypeOnlyCommandData : CommandData {
|
||||
data class Command<T : CommandData>(val value: T, val signers: List<PublicKey>) {
|
||||
// TODO Introduce NonEmptyList?
|
||||
init {
|
||||
require(signers.isNotEmpty())
|
||||
require(signers.isNotEmpty()) { "The list of signers cannot be empty" }
|
||||
}
|
||||
|
||||
constructor(data: T, key: PublicKey) : this(data, listOf(key))
|
||||
|
Reference in New Issue
Block a user