proto.xmr.tx.completed.info: return TxInfo instance
This commit is contained in:
parent
33ff0a85a7
commit
1304a3be55
2 changed files with 5 additions and 5 deletions
|
|
@ -42,8 +42,8 @@ class Completed(Base):
|
|||
|
||||
@property
|
||||
def info(self):
|
||||
class info_cls:
|
||||
@staticmethod
|
||||
def format(*args, **kwargs):
|
||||
from ....tx.info import TxInfo
|
||||
class info_cls(TxInfo):
|
||||
def format(info_self, *args, **kwargs):
|
||||
return self.compat_tx.get_info(full_address=True)
|
||||
return info_cls
|
||||
return info_cls(self.cfg, self)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class OnlineSigned(Completed):
|
|||
ymsg('An RPC error occurred while fetching transaction data')
|
||||
ret = 1
|
||||
if self.cfg.verbose:
|
||||
msg_r('\n' + self.compat_tx.get_info())
|
||||
msg_r('\n' + self.info.format())
|
||||
return ret
|
||||
else:
|
||||
await op.restart_wallet_daemon()
|
||||
|
|
|
|||
Loading…
Reference in a new issue