Define raises pragma for the whole file

This commit is contained in:
Arnaud 2025-09-11 08:24:22 +02:00
parent 6e77d068a6
commit 1588e7f2b1
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

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)