Skip to content

Commit

Permalink
fix: move exodus up the list (#85)
Browse files Browse the repository at this point in the history
* fix: move exodus up the list

* fix: use exodus wallet provider
  • Loading branch information
Abhikumar98 authored May 3, 2023
1 parent 5fb32dc commit 5fc59bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/wallet-management/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,4 @@ export enum ProviderIdentityFlag {
MathWallet = 'isMathWallet',
Frontier = 'isFrontier',
ApexWallet = 'isApexWallet',
Exodus = 'isExodus',
}
15 changes: 9 additions & 6 deletions packages/wallet-management/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -255,5 +259,4 @@ export const supportedWallets = [
oneInch,
tokenary,
mathWallet,
exodus,
];

0 comments on commit 5fc59bc

Please sign in to comment.