minor fix

This commit is contained in:
protolambda 2019-06-14 19:16:15 +02:00
parent 7b0ffc1ace
commit 01be8b7e65
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 1 deletions

View File

@ -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)