Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadari committed Apr 14, 2022
1 parent 5cb1a2f commit 91e42e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slk/repl/repl_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 91e42e9

Please sign in to comment.