Open GauravDuseja1 opened 1 year ago
It seems your contract address might be wrong.
same problem for me, I have use correct address but still not working
@salmankhan321 @GauravDuseja1 I guess you are missing activeChain in your main.js file
i am facing the similar issue , have used the correct address but still showing me the same error . query.ts:446 Error: Could not resolve metadata for contract at 0xE25c92898B4621Fc264DA62C46Fbc6e06fBdA0aB at fetchContractMetadataFromAddress (contract-publisher-d55c8d8a.browser.esm.js:4362:13)
main.jsx file
please help!!!
go to client > source > main.jsx file and replace with this code
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
)
On Sun, Jul 16, 2023 at 10:04 PM Prash766 @.***> wrote:
i am facing the similar issue , have used the correct address but still showing me the same error . query.ts:446 Error: Could not resolve metadata for contract at 0xE25c92898B4621Fc264DA62C46Fbc6e06fBdA0aB at fetchContractMetadataFromAddress (contract-publisher-d55c8d8a.browser.esm.js:4362:13)
import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter as Router } from 'react-router-dom'; import { ChainId, ThirdwebProvider } from @.***/react';
import { StateContextProvider } from './context'; import App from './App'; import './index.css';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
)
please help!!!
— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_crowdfunding/issues/60#issuecomment-1637139612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJQUHFZKOE5RYL47SGVQK23XQQNKFANCNFSM6AAAAAA2LDIWM4 . You are receiving this because you were mentioned.Message ID: @.***>
Thankyou for helping me 😀😀
On Sun, Jul 16, 2023, 23:35 SALMAN KHAN @.***> wrote:
go to client > source > main.jsx file and replace with this code
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
)
On Sun, Jul 16, 2023 at 10:04 PM Prash766 @.***> wrote:
i am facing the similar issue , have used the correct address but still showing me the same error . query.ts:446 Error: Could not resolve metadata for contract at 0xE25c92898B4621Fc264DA62C46Fbc6e06fBdA0aB at fetchContractMetadataFromAddress (contract-publisher-d55c8d8a.browser.esm.js:4362:13)
import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter as Router } from 'react-router-dom'; import { ChainId, ThirdwebProvider } from @.***/react';
import { StateContextProvider } from './context'; import App from './App'; import './index.css';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
)
please help!!!
— Reply to this email directly, view it on GitHub < https://github.com/adrianhajdin/project_crowdfunding/issues/60#issuecomment-1637139612>,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AJQUHFZKOE5RYL47SGVQK23XQQNKFANCNFSM6AAAAAA2LDIWM4>
. You are receiving this because you were mentioned.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_crowdfunding/issues/60#issuecomment-1637153561, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2KOW3264AETXAADBLALDXTXQQUPPANCNFSM6AAAAAA2LDIWM4 . You are receiving this because you commented.Message ID: @.***>
Hey bro , do like this can solve problem
root.render(
<ThirdwebProvider activeChain="goerli" clientId="5">
<Router>
<StateContextProvider>
<App />
</StateContextProvider>
</Router>
</ThirdwebProvider>
I still get this error. I'm using Sepolia instead of goerli. Here's my code
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import { ChainId, ThirdwebProvider } from "@thirdweb-dev/react";
import { Sepolia } from "@thirdweb-dev/chains";
import "./styles/globals.css";
import { StateContextProvider } from "./context";
const container = document.getElementById("root");
const root = createRoot(container);
root.render(
<React.StrictMode>
<ThirdwebProvider
activeChain={ChainId.Sepolia}
clientId="a82c3a6dcea35d5623fc769446c4fdf3"
>
<StateContextProvider>
<App />
</StateContextProvider>
</ThirdwebProvider>
</React.StrictMode>
);
import { Sepolia } from "@thirdweb-dev/chains"; <ThirdwebProvider activeChain={Sepolia}
do it in this way, It worked for me
Please Help