Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to use the chain Sepolia #97

Open
remibeaufils opened this issue Aug 14, 2023 · 1 comment
Open

Add the possibility to use the chain Sepolia #97

remibeaufils opened this issue Aug 14, 2023 · 1 comment

Comments

@remibeaufils
Copy link

Is your feature request related to a problem? Please describe.
When trying to use the chain Sepolia, this error occurs:

app-index.js:32 ChainDoesNotSupportContract: Chain "Sepolia" does not support contract "ensUniversalResolver".

This could be due to any of the following:
- The chain does not have the contract "ensUniversalResolver" configured.

Describe the solution you'd like
I would like to be able to use the chain Sepolia.

Describe alternatives you've considered
For the moment I have to use the chain Goerli.

Additional context
I simply init the app with npx create-web3-dapp@latest
then I modified frontend/app/layout.tsx like this:

"use client";
import { WagmiConfig, createConfig, sepolia } from "wagmi";
import { ConnectKitProvider, getDefaultConfig } from "connectkit";
import Navbar from "@/components/instructionsComponent/navigation/navbar";
import Footer from "@/components/instructionsComponent/navigation/footer";
import { goerli } from "viem/chains";

const config = createConfig(
  getDefaultConfig({
    // Required API Keys
    alchemyId: process.env.ALCHEMY_API_KEY, // or infuraId
    walletConnectProjectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID!,

    // Required
    appName: "You Create Web3 Dapp",

    // Optional
    appDescription: "Your App Description",
    appUrl: "https://family.co", // your app's url
    appIcon: "https://family.co/logo.png", // your app's logo,no bigger than 1024x1024px (max. 1MB)

    // ChainDoesNotSupportContract: Chain "Sepolia" does not support contract "ensUniversalResolver".
    // This could be due to any of the following:
    // - The chain does not have the contract "ensUniversalResolver" configured.
    chains: [sepolia],
    // chains: [goerli],
  })
);

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en">
      <WagmiConfig config={config}>
        <ConnectKitProvider mode="dark">
          <body>
            <div style={{ display: "flex", flexDirection: "column", minHeight: "105vh" }}>
              <Navbar />
              <div style={{flexGrow: 1}}>{children}</div>
              <Footer />
            </div>
          </body>
        </ConnectKitProvider>
      </WagmiConfig>
    </html>
  );
}
@mohitvdx
Copy link

should work on sepolia testnet.
Please give more info on this "ensUniversalResolver" contract

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants