DEV Community

Discussion on: How to Build a Full Stack NFT Marketplace - V2 (2022)

Collapse
 
zonezter_bas profile image
Bas

I have tried everything when it comes to this error:
Error: call revert exception (method="fetchMarketItems()", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.4.0)

Everybody else here seems to have fixed it by providing the RPC url in the
const provider = new ethers.providers.JsonRpcProvider

But for some reason I keep getting the same error anyway, anybody have any idea where to look? :(

Collapse
 
skimaharvey profile image
Skima Harvey • Edited

Yes for some reason the market.address (in the deploy.js file) doesnt console.log the address of your NFTMarket address but some random one (same thing for the NFT contract address). What you can do is look at the transaction created by your Mumbai wallet. Find this transactions then get the contract's addresses of these transactions and update them accordingly in your config.js file.

Collapse
 
zonezter_bas profile image
Bas

Thank you very much! How do I look at the transactions created by the Mumbai wallet?

Thread Thread
 
skimaharvey profile image
Skima Harvey

what you can do is redeploy on mumba and instead of console.log address console.log(market.deployTransaction.hash) and console.log(nft.deployTransaction.hash) . This will give you the transactions hashes then go to mumbai.polygonscan.com/ and enter these transactions hashes in order to find the correct contracts addresses. Update your config.js accordingly

Thread Thread
 
zonezter_bas profile image
Bas • Edited

This fixed it. I now have it deployed the project and its working on mumbai. Once again, thank you so much! I have been going crazy trying to figure this out.

Thread Thread
 
skimaharvey profile image
Skima Harvey

Sure np. Ran into this issue last night as well. Just weird that nft.address logs another address...

Thread Thread
 
latonet profile image
latonet

where is console.log? (to "instead of console.log address .....") (jan 10 post)

Thread Thread
 
latonet profile image
latonet

where is console.log file to get market.deployTransaction.hash and nft.deployTransaction.hash?