From 160d0b4009fd333a70b3f7ec4976813447183f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBelazko?= Date: Fri, 8 Nov 2019 00:01:46 +0100 Subject: [PATCH] fix: hex to binary validation --- plasma_framework/python_tests/plasma_core/utils/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plasma_framework/python_tests/plasma_core/utils/utils.py b/plasma_framework/python_tests/plasma_core/utils/utils.py index 7208cf492..525331584 100644 --- a/plasma_framework/python_tests/plasma_core/utils/utils.py +++ b/plasma_framework/python_tests/plasma_core/utils/utils.py @@ -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)