Make status methods properties

This commit is contained in:
lash 2022-05-09 19:21:05 +00:00
parent 23ee2f4b09
commit 11b7c4e4e8
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -47,12 +47,14 @@ class Tx(Src):
self.block = block self.block = block
@property
def status(self): def status(self):
if self.result == None: if self.result == None:
return None return None
return self.result.status return self.result.status
@property
def status_name(self): def status_name(self):
if self.result == None: if self.result == None:
return None return None