Don't use single line style for verify

This commit is contained in:
Matthew Nesbit 2016-08-19 12:05:32 +01:00
parent 696b9741dd
commit 413060aa6d
2 changed files with 10 additions and 8 deletions

View File

@ -450,11 +450,11 @@ class InterestRateSwap() : Contract {
fun extractCommands(tx: TransactionForContract): Collection<AuthenticatedObject<CommandData>>
= tx.commands.select<Commands>()
override fun verify(tx: TransactionForContract) = verifyClauses(tx,
listOf(Clause.Timestamped(),
Clause.Group(),
LinearState.ClauseVerifier(State::class.java)),
override fun verify(tx: TransactionForContract) {
verifyClauses(tx,
listOf(Clause.Timestamped(), Clause.Group(), LinearState.ClauseVerifier(State::class.java)),
extractCommands(tx))
}
interface Clause {
/**

View File

@ -11,9 +11,11 @@ import java.security.PublicKey
class DummyLinearContract: Contract {
override val legalContractReference: SecureHash = SecureHash.sha256("Test")
override fun verify(tx: TransactionForContract) = verifyClauses(tx,
override fun verify(tx: TransactionForContract) {
verifyClauses(tx,
listOf(LinearState.ClauseVerifier(State::class.java)),
emptyList())
}
class State(