From 1304a3be55944941bc1af16f86f668cc36e2e5ce Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 20 Oct 2026 17:38:48 +0000 Subject: [PATCH] proto.xmr.tx.completed.info: return TxInfo instance --- mmgen/proto/xmr/tx/completed.py | 8 ++++---- mmgen/proto/xmr/tx/online.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mmgen/proto/xmr/tx/completed.py b/mmgen/proto/xmr/tx/completed.py index 930e4005..1b873c63 100644 --- a/mmgen/proto/xmr/tx/completed.py +++ b/mmgen/proto/xmr/tx/completed.py @@ -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) diff --git a/mmgen/proto/xmr/tx/online.py b/mmgen/proto/xmr/tx/online.py index 88bcadae..a03ae186 100644 --- a/mmgen/proto/xmr/tx/online.py +++ b/mmgen/proto/xmr/tx/online.py @@ -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()