Tidied document code example

This commit is contained in:
jamescarlyle 2016-09-08 23:02:01 +01:00
parent e187c4d91d
commit 455a0ac9c9

View File

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