Define raises pragma for the whole file

This commit is contained in:
Arnaud 2025-09-11 08:24:22 +02:00 committed by Eric
parent 24cb4697e5
commit 1a499a7858
No known key found for this signature in database

View File

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