Skip to content

Commit

Permalink
Enable Backpack sol wallet adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Sep 16, 2024
1 parent bbbc59a commit cdca381
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/wallet/context/SolanaWalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react
import { WalletModalProvider } from '@solana/wallet-adapter-react-ui';
import '@solana/wallet-adapter-react-ui/styles.css';
import {
BackpackWalletAdapter,
LedgerWalletAdapter,
PhantomWalletAdapter,
SolflareWalletAdapter,
Expand All @@ -16,11 +17,12 @@ import { logger } from '../../../utils/logger';

export function SolanaWalletContext({ children }: PropsWithChildren<unknown>) {
// TODO support multiple networks
const network = WalletAdapterNetwork.Devnet;
const network = WalletAdapterNetwork.Mainnet;
const endpoint = useMemo(() => clusterApiUrl(network), [network]);
const wallets = useMemo(
() => [
new PhantomWalletAdapter(),
new BackpackWalletAdapter(),
new SolflareWalletAdapter(),
new TrustWalletAdapter(),
new LedgerWalletAdapter(),
Expand Down

0 comments on commit cdca381

Please sign in to comment.