mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 19:28:20 +00:00
Fixed compilation error with newer nim
This commit is contained in:
parent
5b35b6c2dc
commit
5776393539
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user