diff --git a/slk/repl/repl_functionality.py b/slk/repl/repl_functionality.py index fa1cb9e..08245d0 100644 --- a/slk/repl/repl_functionality.py +++ b/slk/repl/repl_functionality.py @@ -157,7 +157,7 @@ def get_pending_tx_info( for t in pending: amt = t["amount"] if is_xrp(amt): - amt = format(drops_to_xrp(amt), ",.6f") + amt = drops_to_xrp(amt) if not verbose: pending_info = { "chain": short_chain_name, @@ -308,6 +308,8 @@ def get_balances_data( chain.substitute_nicknames(chain_res) if not in_drops and chain_res["currency"] == "XRP": chain_res["balance"] = drops_to_xrp(chain_res["balance"]) + # TODO: do this in a neater way (by removing this extra formatting) + # when https://github.com/astanin/python-tabulate/pull/176 is approved chain_res["balance"] = format(chain_res["balance"], ",.6f") else: try: