diff --git a/docs/source/tutorial-contract.rst b/docs/source/tutorial-contract.rst index a923fe5fad..ed4e52ebf2 100644 --- a/docs/source/tutorial-contract.rst +++ b/docs/source/tutorial-contract.rst @@ -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