proto.xmr.tx.completed.info: return TxInfo instance

This commit is contained in:
The MMGen Project 2026-10-20 17:38:48 +00:00
commit 1304a3be55
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 5 additions and 5 deletions

View file

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

View file

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