Skip to content

Commit

Permalink
python cli status cmd should only display fees for tokens on chain (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzman authored Nov 6, 2024
1 parent b537f00 commit 47d9602
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions python/mobilecoin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,13 @@ def status(self):
print()
print('Transaction Fees:')
for token in TOKENS:
amount = Amount.from_storage_units(
network_status['fees'][str(token.token_id)],
token
)
print(indent(amount.format(), ' '))
fee_storage_units = network_status['fees'].get(str(token.token_id))
if fee_storage_units is not None:
amount = Amount.from_storage_units(
fee_storage_units,
token
)
print(indent(amount.format(), ' '))

def list(self):
accounts = self.client.get_accounts()
Expand Down

0 comments on commit 47d9602

Please sign in to comment.