Correct tx status human output

This commit is contained in:
lash 2022-05-18 22:01:59 +00:00
parent bf166af544
commit 772781c1b8
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -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'

View File

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