Fix EthTime.now from func to proc due to sideeffects

This commit is contained in:
jangko 2023-10-17 17:20:34 +07:00
parent 2be8c183d1
commit e34a9c4e5d
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 1 additions and 1 deletions

View File

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