master
lza_menace 2 years ago
parent 201b1cf306
commit 4c056b7de0

@ -8,6 +8,7 @@ import React from "react";
import { getDefaultWallets, RainbowKitProvider } from '@rainbow-me/rainbowkit'; import { getDefaultWallets, RainbowKitProvider } from '@rainbow-me/rainbowkit';
import { configureChains, createClient, WagmiConfig } from 'wagmi'; import { configureChains, createClient, WagmiConfig } from 'wagmi';
import { mainnet, goerli, localhost } from 'wagmi/chains'; import { mainnet, goerli, localhost } from 'wagmi/chains';
import { infuraProvider } from 'wagmi/providers/infura'
import { publicProvider } from 'wagmi/providers/public'; import { publicProvider } from 'wagmi/providers/public';
import { ParallaxProvider } from 'react-scroll-parallax'; import { ParallaxProvider } from 'react-scroll-parallax';
@ -18,7 +19,10 @@ import { AllSections } from './template/Sections';
const { chains, provider, webSocketProvider } = configureChains( const { chains, provider, webSocketProvider } = configureChains(
[mainnet, goerli, localhost], [mainnet, goerli, localhost],
[publicProvider()] [
publicProvider(),
infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' })
]
); );
const { connectors } = getDefaultWallets({ const { connectors } = getDefaultWallets({
@ -39,7 +43,7 @@ ReactDOM.createRoot(document.getElementById("root")).render(
<RainbowKitProvider chains={chains} initialChain={5}> <RainbowKitProvider chains={chains} initialChain={5}>
<Wallet /> <Wallet />
<div className="scrollContainer"> <div className="scrollContainer">
<AllSections contractAddress={'0x31205d753ec2784160f70e6e6177581c7721bd0e'} /> <AllSections contractAddress={'0x31205d753eC2784160F70E6E6177581c7721bD0E'} />
</div> </div>
</RainbowKitProvider> </RainbowKitProvider>
</WagmiConfig> </WagmiConfig>

@ -496,7 +496,7 @@ function Section3(props) {
<NotificationContainer/> <NotificationContainer/>
</>} </>}
{options.unaboomerMaxSupply > 0 && ( {isConnected && options.unaboomerMaxSupply > 0 && (
<GameMap <GameMap
bombsAssembled={options.bombsAssembled} bombsAssembled={options.bombsAssembled}
bombBalance={options.bombBalance} bombBalance={options.bombBalance}
@ -508,7 +508,7 @@ function Section3(props) {
unaboomerMaxSupply={options.unaboomerMaxSupply} unaboomerMaxSupply={options.unaboomerMaxSupply}
unaboomerMaxSurvivorCount={options.unaboomerMaxSurvivorCount} unaboomerMaxSurvivorCount={options.unaboomerMaxSurvivorCount}
/> />
) || ( ) || isConnected && (
<div id="heroText"> <div id="heroText">
<h1>loading...</h1> <h1>loading...</h1>
</div> </div>

Loading…
Cancel
Save