adrianhajdin / project_crowdfunding

With a stunning design, connected to the blockchain, metamask pairing, interaction with smart contracts, sending Ethereum through the blockchain network, and writing solidity code.
https://jsmastery.pro
680 stars 372 forks source link

query.ts:446 Error: Could not resolve metadata for contract at 0xF2819312c49b121711E127cf8B7bf4CFC715B664 at fetchContractMetadataFromAddress (contract-publisher-d55c8d8a.browser.esm.js:4362:13) #60

Open GauravDuseja1 opened 1 year ago

GauravDuseja1 commented 1 year ago

Please Help

BahadorGh commented 1 year ago

It seems your contract address might be wrong.

connectsalman commented 1 year ago

same problem for me, I have use correct address but still not working

BahadorGh commented 1 year ago

@salmankhan321 @GauravDuseja1 I guess you are missing activeChain in your main.js file

Prash766 commented 1 year ago

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 Screenshot 2023-07-16 223723

please help!!!

connectsalman commented 1 year ago

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: @.***>

Prash766 commented 1 year ago

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: @.***>

Mosqu1to3zZ commented 1 year ago

Hey bro , do like this can solve problem

root.render(
  <ThirdwebProvider activeChain="goerli" clientId="5"> 
    <Router>
      <StateContextProvider>
        <App />
      </StateContextProvider>
    </Router>
  </ThirdwebProvider> 
emirbektas commented 1 year ago

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>
);
abhii9922 commented 5 months ago

import { Sepolia } from "@thirdweb-dev/chains"; <ThirdwebProvider activeChain={Sepolia}

do it in this way, It worked for me