serinko 4 лет назад
Родитель
Сommit
3b7ae3ff3e

BIN
__pycache__/texts_cli.cpython-38.pyc


BIN
__pycache__/whallets_cli.cpython-38.pyc


+ 1 - 1
wallets_dict.json

@@ -32,7 +32,7 @@
                 }
             }
         },
-        
+
         "@zhusu_3ac_1": {
             "twitter": "https://twitter.com/zhusu",
             "info": "3AC founder, enterpreteur, Deribit, uncommon core",

+ 13 - 6
whallets_cli.py

@@ -83,17 +83,24 @@ def display_wallets(chain):
 
     for key, value in dict.items():
         user = key
-        wallets = value['wallets']
         info = value['info']
         twitter = value['twitter']
-        chains = []
-        for key, value in wallets.items():
-            chains.append(key)
+        wallets = {}
+        wlts = value['wallets']
+        for x, y in wlts.items():
+            wallets[x] = y
+
+
         print(f"\nUser: {user}")
         print(f"Info: {info}")
         print(f"Twitter: {twitter}")
-        print(f"Wallet address: {value}")
-        print(f"Active networks: {chains}")
+        for wlt,inf in wallets.items():
+            print(f"Wallets: {wlt}")
+            print(f"Address: {inf['address']}")
+            print(f"Active networks:")
+            for network in inf['networks']:
+                print(f"- {network}")
+
 
 def _chain_index(chain):
     '''Asigns an index based on given parameter of the chain'''