From 1a499a7858261bb20f38f5c686b0fc2cbcede4dc Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 11 Sep 2025 08:24:22 +0200 Subject: [PATCH] Define raises pragma for the whole file --- codex/contracts/clock.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codex/contracts/clock.nim b/codex/contracts/clock.nim index 860f2188..885d8e86 100644 --- a/codex/contracts/clock.nim +++ b/codex/contracts/clock.nim @@ -1,3 +1,6 @@ + +{.push raises: [].} + import std/times import pkg/ethers import pkg/questionable @@ -68,7 +71,7 @@ method stop*(clock: OnChainClock) {.async.} = await clock.trackedFutures.cancelTracked() clock.started = false -method now*(clock: OnChainClock): SecondsSince1970 {.raises: [].} = +method now*(clock: OnChainClock): SecondsSince1970 = doAssert clock.started, "clock should be started before calling now()" return toUnix(getTime() + clock.offset)