From 772781c1b86dce03213232d216fba33f1bbc5f4b Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 18 May 2022 22:01:59 +0000 Subject: [PATCH] Correct tx status human output --- CHANGELOG | 2 ++ chainlib/eth/tx.py | 6 +++--- setup.cfg | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 580a152..03e02f3 100644 --- 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 index 47d2c25..7448fcb 100644 --- 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 index c626816..af03b6d 100644 --- 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