Skip to content

Commit

Permalink
Merge pull request #101 from jannikluhn/fix-hashablify-value
Browse files Browse the repository at this point in the history
Add passthrough for hashables in hashablify_value
  • Loading branch information
jannikluhn committed Dec 13, 2019
2 parents 9b6ae08 + 549a4e2 commit d3eabae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssz/hashable_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ class GenericMetaSignedHashableContainer(


def hashablify_value(value: Any, sedes: BaseSedes) -> Any:
if isinstance(value, (HashableContainer, HashableList, HashableVector)):
return value

if isinstance(sedes, List):
return HashableList.from_iterable(value, sedes)
elif isinstance(sedes, Vector):
Expand Down

0 comments on commit d3eabae

Please sign in to comment.