Fix the bulds with json logging enabled

This commit is contained in:
Zahary Karadjov 2019-11-14 14:37:34 +00:00 committed by zah
parent acd490916f
commit 957645d752
1 changed files with 6 additions and 0 deletions

View File

@ -452,6 +452,12 @@ template ethTimeUnit(typ: type) {.dirty.} =
proc readValue*(reader: var JsonReader, value: var typ) =
value = typ reader.readValue(uint64)
proc writeValue*(writer: var JsonWriter, value: ValidatorIndex) =
writeValue(writer, uint32 value)
proc readValue*(reader: var JsonReader, value: var ValidatorIndex) =
value = ValidatorIndex reader.readValue(uint32)
proc `%`*(i: uint64): JsonNode =
% int(i)