Skip to content

Commit

Permalink
cust om mainnet rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeardEth committed Dec 18, 2024
1 parent fa5fd8c commit fdc7792
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/nextjs/src/providers/Web3Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ export const config = getDefaultConfig({
projectId: env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID,
chains: [isTestnet ? sepolia : mainnet],
ssr: true,
transports: isTestnet ? { [sepolia.id]: http() } : { [mainnet.id]: http() },
transports: isTestnet
? { [sepolia.id]: http() }
: {
[mainnet.id]: http(
"https://mainnet.infura.io/v3/ee98f29298784027b0afa71b7e05d3ed",
),
},
});

export function Web3Providers({ children }: { children: ReactElement }) {
Expand Down

0 comments on commit fdc7792

Please sign in to comment.