Make status methods properties
This commit is contained in:
parent
23ee2f4b09
commit
11b7c4e4e8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user