add glow wallet

This commit is contained in:
tjs 2022-12-30 15:07:32 -05:00
parent fcbca6fc2e
commit 73ca3a92eb
1 changed files with 7 additions and 2 deletions

View File

@ -16,6 +16,7 @@ import {
import {
PhantomWalletAdapter,
SolflareWalletAdapter,
GlowWalletAdapter,
} from '@solana/wallet-adapter-wallets'
import { clusterApiUrl } from '@solana/web3.js'
import Notifications from '../components/shared/Notification'
@ -42,10 +43,14 @@ import { THEME_KEY } from 'utils/constants'
const queryClient = new QueryClient()
function MyApp({ Component, pageProps }: AppProps) {
const network = WalletAdapterNetwork.Devnet
const network = WalletAdapterNetwork.Mainnet
const endpoint = useMemo(() => clusterApiUrl(network), [network])
const wallets = useMemo(
() => [new PhantomWalletAdapter(), new SolflareWalletAdapter({ network })],
() => [
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new GlowWalletAdapter(),
],
[]
)