Skip to content

Commit

Permalink
fix: hex to binary validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pik694 committed Nov 7, 2019
1 parent dd53831 commit 160d0b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plasma_framework/python_tests/plasma_core/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def normalize_key(key):


def hex_to_binary(h):
assert isinstance(h, str)
if h[:2] == '0x':
h = h[2:]
return bytes.fromhex(h)
Expand Down

0 comments on commit 160d0b4

Please sign in to comment.