Test DSL: update tests to handle new transaction constraints

This commit is contained in:
Andrius Dagys
2017-08-09 16:17:26 +01:00
parent f5776d6bd7
commit 73664c3383
13 changed files with 32 additions and 26 deletions

View File

@ -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))