From 5fc59bc97b899d5ced2a7fd2dc545470c8c0a976 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 3 May 2023 19:04:33 +0530 Subject: [PATCH] fix: move exodus up the list (#85) * fix: move exodus up the list * fix: use exodus wallet provider --- packages/wallet-management/src/types/index.ts | 1 - packages/wallet-management/src/wallets.ts | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/wallet-management/src/types/index.ts b/packages/wallet-management/src/types/index.ts index d1032d730..4e4c8c2a9 100644 --- a/packages/wallet-management/src/types/index.ts +++ b/packages/wallet-management/src/types/index.ts @@ -89,5 +89,4 @@ export enum ProviderIdentityFlag { MathWallet = 'isMathWallet', Frontier = 'isFrontier', ApexWallet = 'isApexWallet', - Exodus = 'isExodus', } diff --git a/packages/wallet-management/src/wallets.ts b/packages/wallet-management/src/wallets.ts index e30c6fcea..52b9df0d7 100644 --- a/packages/wallet-management/src/wallets.ts +++ b/packages/wallet-management/src/wallets.ts @@ -219,16 +219,20 @@ const tokenary: Wallet = new InjectedConnector({ icon: walletIcons.tokenary, }); -const exodus: Wallet = new InjectedConnector({ - name: 'Exodus', - installed: () => (window as any).ethereum?.[ProviderIdentityFlag.Exodus], - icon: walletIcons.exodus, -}); +const exodus: Wallet = new InjectedConnector( + { + name: 'Exodus', + installed: () => (window as any).exodus?.ethereum, + icon: walletIcons.exodus, + }, + (window as any).exodus?.ethereum, +); export const supportedWallets = [ defaultWallet, metamask, walletConnect, + exodus, tallyho, binance, frontier, @@ -255,5 +259,4 @@ export const supportedWallets = [ oneInch, tokenary, mathWallet, - exodus, ];