Page MenuHomePhabricator

[electrum] fix unit for proof editor
ClosedPublic

Authored by PiRK on Mon, Nov 24, 15:37.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCb1a9bf8ffab0: [electrum] fix unit for proof editor
Summary

The "select coins in wallet" widget showed "sats" when the amounts where actually formatted as "XEC". Let's just respect the unit selected by the user (default XEC).
Print whitespaces in case the user has not selected full precision in the settings (e.g unit XEC and num_zeros 0 or 1) so that the integer parts align vertically in the amount column, the same way it is already done in the Coins tab.

Depends on D18988

Test Plan

open the proof editor via the menu and via the coins tab (context menu when clicking on a utxo). Try to load additional coins from the wallet.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
proof_editor_nits
Lint
Lint Passed
SeverityLocationCodeMessage
Auto-Fixelectrum/electrumabc_gui/qt/avalanche/proof_editor.py:1RUFF-CHECKCode style violation
Unit
No Test Coverage
Build Status
Buildable 35150
Build 69758: Build Diffelectrum-tests · electrum-functional-tests
Build 69757: arc lint + arc unit