mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-13 12:14:19 +00:00
minor fix
This commit is contained in:
parent
7b0ffc1ace
commit
01be8b7e65
@ -69,7 +69,7 @@ def translate_value(value, typ):
|
||||
elem_typ = spec_ssz.read_elem_type(typ)
|
||||
return [translate_value(elem, elem_typ) for elem in value]
|
||||
elif spec_ssz.is_bool_type(typ):
|
||||
return False
|
||||
return value
|
||||
elif spec_ssz.is_vector_type(typ):
|
||||
elem_typ = spec_ssz.read_elem_type(typ)
|
||||
return typ(translate_value(elem, elem_typ) for elem in value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user