mirror of https://github.com/status-im/nim-eth.git
Fix EthTime.now from func to proc due to sideeffects
This commit is contained in:
parent
2be8c183d1
commit
e34a9c4e5d
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue