Skip to content

Commit

Permalink
Merge pull request #105 from dankrad/patch-2
Browse files Browse the repository at this point in the history
Correct is_basic() implementation
  • Loading branch information
djrtwo authored Mar 6, 2019
2 parents 3f0dc6e + bf5b2c2 commit 02454e3
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 @@ -39,7 +39,7 @@ def hash_tree_root(self):
return SSZObject

def is_basic(typ):
return isinstance(typ, str) and typ[:4] in ('uint', 'bool')
return isinstance(typ, str) and (typ[:4] in ('uint', 'bool') or typ == 'byte')

def is_constant_sized(typ):
if is_basic(typ):
Expand Down

0 comments on commit 02454e3

Please sign in to comment.