From e34a9c4e5daee654d6ea16f6c4595253548ffb17 Mon Sep 17 00:00:00 2001 From: jangko Date: Tue, 17 Oct 2023 17:20:34 +0700 Subject: [PATCH] Fix EthTime.now from func to proc due to sideeffects --- eth/common/eth_times.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/common/eth_times.nim b/eth/common/eth_times.nim index 9243eb7..fda8e9f 100644 --- a/eth/common/eth_times.nim +++ b/eth/common/eth_times.nim @@ -14,7 +14,7 @@ import type EthTime* = distinct uint64 -func now*(_: type EthTime): EthTime = +proc now*(_: type EthTime): EthTime = getTime().utc.toTime.toUnix.EthTime func `+`*(a: EthTime, b: EthTime): EthTime =