getting it working

master
lza_menace 2 years ago
parent 35c36ccde2
commit f15ec5a252

@ -40,10 +40,10 @@ const wagmiClient = createClient({
let chainId; let chainId;
let contractAddress; let contractAddress;
if (process.env.CHAIN == '5') { if (process.env.CHAIN == 5) {
chainId = 5; chainId = 5;
contractAddress = '0x31205d753eC2784160F70E6E6177581c7721bD0E'; contractAddress = '0x5a61b50dcd3d394e91794847c55b05f92d5a8e7c';
} else if (process.env.CHAIN == '1') { } else if (process.env.CHAIN == 1) {
chainId = 1; chainId = 1;
contractAddress = ''; contractAddress = '';
} else { } else {
@ -54,10 +54,10 @@ if (process.env.CHAIN == '5') {
ReactDOM.createRoot(document.getElementById("root")).render( ReactDOM.createRoot(document.getElementById("root")).render(
<ParallaxProvider> <ParallaxProvider>
<WagmiConfig client={wagmiClient}> <WagmiConfig client={wagmiClient}>
<RainbowKitProvider chains={chains} initialChain={chainId}> <RainbowKitProvider chains={chains} initialChain={5}>
<Wallet /> <Wallet />
<div className="scrollContainer"> <div className="scrollContainer">
<AllSections contractAddress={contractAddress} /> <AllSections contractAddress={'0x5a61b50dcd3d394e91794847c55b05f92d5a8e7c'} />
</div> </div>
</RainbowKitProvider> </RainbowKitProvider>
</WagmiConfig> </WagmiConfig>

Loading…
Cancel
Save