Przeglądaj źródła

wallet formatting

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

BIN
__pycache__/texts_cli.cpython-38.pyc


+ 18 - 3
whallets_cli.py

@@ -89,17 +89,32 @@ def save_wallet(**new_wallet_dict):
 
 def refactor_wallet(addresses, new_wallet):
     """Refactor the wallet items to the wallet_dict format"""
+
+
     new_wallet_dictionary = {new_wallet["username"]: {
-        "twitter": new_wallet["twitter address"]
-        "info": new_wallet["info/note"]
-        "ens":new_wallet["ENS"]
+        "twitter": new_wallet["twitter address"],
+        "info": new_wallet["info/note"],
+        "ens":new_wallet["ENS"],
         "wallets": {
 
 
+
+
         }
 
     }
 
+    for idx, addr in enumerate(addresses):
+        wallet = {f"wallet_{idx}":{
+            "address":f"{addr}",
+            "netw
+
+            }
+          }
+
+
+
+
     # This is the result aiming for:
     # {
     #     "evm_wallets": {