mirror of
https://github.com/corda/corda.git
synced 2024-12-21 22:07:55 +00:00
Don't use single line style for verify
This commit is contained in:
parent
696b9741dd
commit
413060aa6d
@ -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 {
|
||||
/**
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user