From 6d98620bfb46e8dca4c7bd2ad199c869544dd510 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 13 Sep 2026 15:50:13 +0000 Subject: [PATCH] xmrwallet: `addr_w` -> `addr_col_w` --- mmgen/xmrwallet/file/tx.py | 7 ++++--- mmgen/xmrwallet/ops/txview.py | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mmgen/xmrwallet/file/tx.py b/mmgen/xmrwallet/file/tx.py index 1ce84cfa..03f09d29 100755 --- a/mmgen/xmrwallet/file/tx.py +++ b/mmgen/xmrwallet/file/tx.py @@ -83,7 +83,7 @@ class MoneroMMGenTX: def src_wallet_idx(self): return int(self.data.source.split(':')[0]) - def get_info_oneline(self, *, indent='', addr_w=None): + def get_info_oneline(self, *, indent='', addr_col_w=None): d = self.data return self.oneline_fs.format( a = yellow(d.network), @@ -95,10 +95,11 @@ class MoneroMMGenTX: g = red('{}:{}'.format(d.dest.wallet, d.dest.account).ljust(6)) if d.dest else cyan('ext '), h = d.amount.fmt(4, color=True, prec=12), - j = d.dest_address.fmt(0, addr_w, color=True) if addr_w else d.dest_address.hl(0), + j = d.dest_address.fmt(0, addr_col_w, color=True) if addr_col_w else + d.dest_address.hl(0), x = '->') - def get_info(self, *, indent='', addr_w=None, full_address=False): + def get_info(self, *, indent='', addr_col_w=None, full_address=False): d = self.data pmt_id = d.dest_address.parsed.payment_id fs = '\n'.join(list_gen( diff --git a/mmgen/xmrwallet/ops/txview.py b/mmgen/xmrwallet/ops/txview.py index f008f58d..e0d1d7f1 100755 --- a/mmgen/xmrwallet/ops/txview.py +++ b/mmgen/xmrwallet/ops/txview.py @@ -49,12 +49,12 @@ class OpTxview(OpBase): if self.cfg.autosign: self.asi.do_umount() - addr_w = None if self.cfg.full_address or cols is None else cols - self.fixed_cols_w + addr_col_w = None if self.cfg.full_address or cols is None else cols - self.fixed_cols_w self.cfg._util.stdout_or_pager( (self.hdr if len(files) > 1 else '') + self.col_hdr - + '\n'.join(getattr(tx, self.view_method)(addr_w=addr_w) for tx in txs) + + '\n'.join(getattr(tx, self.view_method)(addr_col_w=addr_col_w) for tx in txs) + self.footer) class OpTxlist(OpTxview):