diff --git a/python/eth_address_declarator/interface.py b/python/eth_address_declarator/interface.py index 1a82d37..5dd3986 100644 --- a/python/eth_address_declarator/interface.py +++ b/python/eth_address_declarator/interface.py @@ -117,12 +117,15 @@ class Declarator(TxFactory): @classmethod def parse_declaration(self, v): cursor = 0 - v = strip_0x(v) + r = [] + try: + v = strip_0x(v) + except ValueError: + return r position = int.from_bytes(bytes.fromhex(v[cursor:cursor+64]), 'big') cursor += (position * 2) length = int.from_bytes(bytes.fromhex(v[cursor:cursor+64]), 'big') cursor += 64 - r = [] for i in range(length): r.append(v[cursor:cursor+64]) cursor += 64 diff --git a/python/requirements.txt b/python/requirements.txt index 3e094aa..3ab6070 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,2 +1,2 @@ -confini>=0.3.6rc3,<0.5.0 -chainlib-eth>=0.0.9a13,<=0.1.0 +confini~=0.5.1 +chainlib-eth~=0.0.10 diff --git a/python/setup.cfg b/python/setup.cfg index 58249b6..e0e32df 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-address-index -version = 0.2.4a2 +version = 0.2.4 description = Signed metadata declarations for ethereum addresses author = Louis Holbrook author_email = dev@holbrook.no