diff --git a/src/index.js b/src/index.js index 5f81b6a..414da6c 100644 --- a/src/index.js +++ b/src/index.js @@ -8,6 +8,7 @@ import React from "react"; import { getDefaultWallets, RainbowKitProvider } from '@rainbow-me/rainbowkit'; import { configureChains, createClient, WagmiConfig } from 'wagmi'; import { mainnet, goerli, localhost } from 'wagmi/chains'; +import { infuraProvider } from 'wagmi/providers/infura' import { publicProvider } from 'wagmi/providers/public'; import { ParallaxProvider } from 'react-scroll-parallax'; @@ -18,7 +19,10 @@ import { AllSections } from './template/Sections'; const { chains, provider, webSocketProvider } = configureChains( [mainnet, goerli, localhost], - [publicProvider()] + [ + publicProvider(), + infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }) + ] ); const { connectors } = getDefaultWallets({ @@ -39,7 +43,7 @@ ReactDOM.createRoot(document.getElementById("root")).render(
- +
diff --git a/src/template/Sections.jsx b/src/template/Sections.jsx index c97aa53..f4101fa 100644 --- a/src/template/Sections.jsx +++ b/src/template/Sections.jsx @@ -496,7 +496,7 @@ function Section3(props) { } - {options.unaboomerMaxSupply > 0 && ( + {isConnected && options.unaboomerMaxSupply > 0 && ( - ) || ( + ) || isConnected && (

loading...