Fixed compilation error with newer nim

This commit is contained in:
Yuriy Glukhov 2018-12-12 10:40:39 +02:00 committed by Mamy Ratsimbazafy
parent 5b35b6c2dc
commit 5776393539

View File

@ -121,7 +121,7 @@ func deserialize*(
func serialize*[T](value: T): seq[byte] =
for field in value.fields:
when field is (EthAddress | MDigest | SomeInteger):
when field is (EthAddress | Eth2Digest | SomeInteger):
result.add field.toBytesSSZ()
elif field is seq[SomeInteger or byte]:
result.serSeq field