dev@locazia: fix Tonhub tonhub
This commit is contained in:
1 parent
1a167a7090
commit
b8251a456b
3 files changed
+11
-3
No files matched your search
@@ -48,6 +48,14 @@ TON_CONNECT_WALLETS_LIST = [
|
||||
]
|
||||
|
||||
|
||||
def wallet_obj_by_name(wallet_name: str) -> dict:
|
||||
wallet_name = wallet_name.lower()
|
||||
for wallet in TON_CONNECT_WALLETS_LIST:
|
||||
if wallet["app_name"].lower() == wallet_name:
|
||||
return wallet
|
||||
raise StopIteration(f"Wallet {wallet_name} not found")
|
||||
|
||||
|
||||
def unpack_wallet_info(wallet_info) -> dict:
|
||||
return {
|
||||
'provider': wallet_info.provider,
|
||||
|
||||
Reference in new issue
Block a user