mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Tidied document code example
This commit is contained in:
parent
e187c4d91d
commit
455a0ac9c9
@ -886,7 +886,7 @@ The time-lock contract mentioned above can be implemented very simply:
|
||||
class TestTimeLock : Contract {
|
||||
...
|
||||
override fun verify(tx: TransactionForContract) {
|
||||
val timestamp: Timestamp? = tx.timestamp
|
||||
val time = tx.timestamp.before ?: throw IllegalStateException(...)
|
||||
...
|
||||
requireThat {
|
||||
"the time specified in the time-lock has passed" by
|
||||
|
Loading…
x
Reference in New Issue
Block a user