From 11b7c4e4e86be157cddbf7a1aa1b90c6775e4dfa Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 9 May 2022 19:21:05 +0000 Subject: [PATCH] Make status methods properties --- chainlib/tx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chainlib/tx.py b/chainlib/tx.py index 05c3a49..505a5f7 100644 --- a/chainlib/tx.py +++ b/chainlib/tx.py @@ -47,12 +47,14 @@ class Tx(Src): self.block = block + @property def status(self): if self.result == None: return None return self.result.status - + + @property def status_name(self): if self.result == None: return None