From 455a0ac9c9e999e05bffb6a352a83adb6e5032fa Mon Sep 17 00:00:00 2001 From: jamescarlyle Date: Thu, 8 Sep 2016 23:02:01 +0100 Subject: [PATCH] Tidied document code example --- docs/source/tutorial-contract.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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