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
693 stars 375 forks source link

Could not resolve metadata for contract at 0xD.... at fetchContractMetadataFromAddress #25

Open rahulshahz opened 1 year ago

rahulshahz commented 1 year ago

Could not resolve metadata for contract at 0xDCdD392B0Fc2B91C693172cdd9DC7D548D2df2cb at fetchContractMetadataFromAddress (getContract-3fc8e18e.esm.js:20048:13)

roracion commented 1 year ago

This worked for me:

  1. Go to your "client/main.jsx"
  2. In main.jsx file, change attribute desiredChainId to activeChain in ThirdwebProvider (Line 13 on mine)
  3. Save and see if that fixed it for you

Saw this randomly in the thirdweb documentation , just try to read some parts in there and I assure you it'll help you understand thirdweb more.

Raswanth8 commented 1 year ago

I used localhost for deploying the contract and i am facing the same issue

syedrahman55 commented 1 year ago

still facing the same issue after changing the attribute desiredChainId to activeChain in ThirdwebProvider can anyone please help out the solution as soon as possible

vvarl0cks commented 1 year ago

i got the same issue when deployed it on localhost

MarsIfeanyi commented 1 year ago

This worked for me:

  1. Go to your "client/main.jsx"
  2. In main.jsx file, change attribute desiredChainId to activeChain in ThirdwebProvider (Line 13 on mine)
  3. Save and see if that fixed it for you

Saw this randomly in the thirdweb documentation , just try to read some parts in there and I assure you it'll help you understand thirdweb more.

Thanks mate this worked for me. Initially i was using Sepolia without configuring it as an activeChain.

Installed the activeChain Package and configured it and i worked.