eth-address-index

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 3dd286285c815b8583303c1f8524942e6e67c9bf
parent 0053a1fc7194b3a9e6fbafef01c14dd9f51795d7
Author: nolash <dev@holbrook.no>
Date:   Mon, 15 Nov 2021 14:38:35 +0100

Bump to whole patch version

Diffstat:
Mpython/eth_address_declarator/interface.py | 7+++++--
Mpython/requirements.txt | 4++--
Mpython/setup.cfg | 2+-
3 files changed, 8 insertions(+), 5 deletions(-)

diff --git 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 @@ -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 @@ -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