Skip to content

Commit

Permalink
fix: fix Web3ModalProvider, remove extra exports
Browse files Browse the repository at this point in the history
  • Loading branch information
verkhohliad committed Sep 2, 2024
1 parent 1bd3e7c commit cc33b8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/Web3ModalProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { gnosis, gnosisChiado } from 'wagmi/chains';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

import config from '@/constants/config';
import { Web3Modal } from '@web3modal/wagmi';

const BRAWE_WALLET_ID = '163d2cf19babf05eb8962e9748f9ebe613ed52ebf9c8107c9a0f104bfcf161b3';

Expand All @@ -13,15 +12,15 @@ const queryClient = new QueryClient();
const projectId = config.walletConnectProjectId;

const chains = [gnosisChiado, gnosis] as const;
export const wagmiConfig = createConfig({
const wagmiConfig = createConfig({
chains,
transports: {
[gnosis.id]: http(),
[gnosisChiado.id]: http(),
},
});

export const modal: Web3Modal = createWeb3Modal({
createWeb3Modal({
wagmiConfig,
projectId,
featuredWalletIds: [BRAWE_WALLET_ID],
Expand Down

0 comments on commit cc33b8f

Please sign in to comment.