Przeglądaj źródła

refactored display wallets

serinko 4 lat temu
rodzic
commit
2f24b53775
2 zmienionych plików z 4 dodań i 4 usunięć
  1. BIN
      __pycache__/whallets_cli.cpython-38.pyc
  2. 4 4
      whallets_cli.py

BIN
__pycache__/whallets_cli.cpython-38.pyc


+ 4 - 4
whallets_cli.py

@@ -98,12 +98,12 @@ def display_wallets(chain):
             print(f"Wallets: {wlt}")
             print(f"Address: {inf['address']}")
             print(f"Active networks:")
-            for network in inf['networks']:
-                print(f"- {network}")
-
+            networks = inf['networks']
+            networks_str = ', '.join(networks)
+            print(networks_str)
 
 def _chain_index(chain):
-    '''Asigns an index based on given parameter of the chain'''
+    """Asigns an index based on given parameter of the chain"""
     if chain.lower() == 'evm':
         i = 0
     elif chain.lower() == 'spl':