commit 772781c1b86dce03213232d216fba33f1bbc5f4b
parent bf166af544159e9c902e0255fd5402b6a1b6d2d6
Author: lash <dev@holbrook.no>
Date: Wed, 18 May 2022 22:01:59 +0000
Correct tx status human output
Diffstat:
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,5 @@
+- 0.3.1
+ * Fix missing application of status on tx result
- 0.3.0
* Implement chainlib with new arg and config handling
* Implement cli tools on settings module
diff --git a/chainlib/eth/tx.py b/chainlib/eth/tx.py
@@ -658,7 +658,7 @@ class Tx(BaseTx, Src):
def apply_receipt(self, rcpt, strict=False):
- result = TxResult(rcpt)
+ result = TxResult(src=rcpt)
self.apply_result(result)
@@ -754,9 +754,9 @@ input {}
if self.result != None and self.result.status != Status.PENDING:
s += """gas_used {}
""".format(
- self.result.fee_cost,
- status = self.result.status.name
+ self.result.fee_cost,
)
+ status = self.result.status.name
s += 'status ' + status + '\n'
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = chainlib-eth
-version = 0.3.0
+version = 0.3.1
description = Ethereum implementation of the chainlib interface
author = Louis Holbrook
author_email = dev@holbrook.no