Skip to content

Commit

Permalink
Fix in minimal_ssz.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dankrad committed Mar 12, 2019
1 parent 26b623b commit e2d13bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec_pythonizer/minimal_ssz.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def serialize_value(value, typ):
return serialized_length + serialized_bytes
elif isinstance(typ, list) and len(typ) == 2:
assert len(value) == typ[1]
return ''.join([serialize_value(element, typ[0]) for element in value])
return b''.join([serialize_value(element, typ[0]) for element in value])
elif isinstance(typ, str) and len(typ) > 5 and typ[:5] == 'bytes':
assert len(value) == int(typ[5:]), (value, int(typ[5:]))
return coerce_to_bytes(value)
Expand Down

0 comments on commit e2d13bf

Please sign in to comment.