Fix EthTime json encode in chain_config.nim

This commit is contained in:
jangko 2024-01-29 11:26:20 +07:00
parent edba847d42
commit 61abdac2d7
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ CliqueOptions.useDefaultReaderIn JGenesis
# ------------------------------------------------------------------------------
# Private helper functions
# ------------------------------------------------------------------------------
proc writeValue(writer: var JsonWriter[JGenesis], value: Option[EthTime])
# used by chronicles json writer
proc writeValue(writer: var JsonWriter, value: Option[EthTime])
{.gcsafe, raises: [IOError].} =
mixin writeValue