commit 84493792db2e9b2a0c610c70d6b097c84fb921d1
parent ddca8422877d7d0945b0c0f24383f489c39232ec
Author: lash <dev@holbrook.no>
Date: Fri, 19 May 2023 07:02:27 +0100
Fix encode hex translate bug
Diffstat:
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,5 @@
+- 0.4.23
+ * Fix encode hex translation bug
- 0.4.22
* Add roles and contracts index in unittest fixture
- 0.4.21
diff --git a/chainlib/eth/cli/encode.py b/chainlib/eth/cli/encode.py
@@ -92,7 +92,7 @@ class CLIEncoder(ABIContractEncoder):
if r == None:
raise ValueError('no translation for type {}'.format(typ))
logg.debug('type {} translated to {}'.format(typ, r[0]))
- if int(val) == 0:
+ if int(val, 16) == 0:
if r[0][0] == 'B':
val = ZERO_CONTENT
elif r[0][0] == 'A':
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = chainlib-eth
-version = 0.4.22
+version = 0.4.23
description = Ethereum implementation of the chainlib interface
author = Louis Holbrook
author_email = dev@holbrook.no