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

Cannot fetch nft #26

Closed
berk-can opened this issue Jan 9, 2022 · 11 comments
Closed

Cannot fetch nft #26

berk-can opened this issue Jan 9, 2022 · 11 comments

Comments

@berk-can
Copy link

berk-can commented Jan 9, 2022

Hi all, I've setup project as mentioned in README (local setup without changing hardhat config), then I've connected new account from metamask (should I have do something else?) then I've clicked to My Assets, and it thrown this error:

Uncaught (in promise) Error: call revert exception (method="fetchMyNFTs()", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.5.0) at Logger.makeError (index.js?ffb2:185) at Logger.throwError (index.js?ffb2:194) at Interface.decodeFunctionResult (interface.js?a807:341) at Contract.eval (index.js?f179:288) at Generator.next (<anonymous>) at fulfilled (index.js?f179:5)

I am newby on Blockchain part so I dont know if there is something else I should have done, can somebody please direct me

@vvronskyFX
Copy link

It has to be something with the JsonRPC link in the index.js file or something in our config.js or hardhat.config.js. I'm having the same error and just playing around with the code. No solid solution to share yet. Any support would be appreciated.

@skimaharvey
Copy link

I had this issue the problem is coming from the deploy.js not printing out the correct NFTMarket contract address as well as the correct NFT contract address...
What you can do is once you have deployed on Mumbai, go to your wallet. Find the transactions and from there you can get the correct contracts addresses and update accordingly your config.js file

@berk-can
Copy link
Author

@skimaharvey sorry I dont have enough know-how about Mumbai or test networks is there a guideline to follow to make this project run with a test network?

@hoan27920232
Copy link

@skimaharvey can you be more detail pls

@hoan27920232
Copy link

@berk-can hey i just figure out why we get this error. It's not our code. I think the problem is the version of libraries we use has changed. Just change the version in package.json exactly like orginal code and paste the package-lock.json from the orginal code to your project then npm i

@latonet
Copy link

latonet commented Jan 18, 2022

i get the same type of error as berk-can but for fetching market NFTs, i can create NFTs and they show in my dashboard but but not in the market, so i can't test buy/sell. Thanks

@berk-can
Copy link
Author

@hoan27920232 sorry didnt get what you meant by original code, should I get package.json from a first commit of yours?

@latonet
Copy link

latonet commented Jan 18, 2022

@berk-can from the repository i assume

@latonet
Copy link

latonet commented Jan 18, 2022

hey i just figure out why we get this error. It's not our code. I think the problem is the version of libraries we use has changed. Just change the version in package.json exactly like orginal code and paste the package-lock.json from the orginal code to your project then npm i

@hoan27920232 This doesn't fix the problem, i can still create NFTs and they show in my dashboard but not the marketplace (home page). I got this error again >>> Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.5.2)

@latonet
Copy link

latonet commented Jan 18, 2022

I had to add the chainstack RPC and it works now. NFTs are created and listed in dashboard for an account, and listed in the home page as marketplace, however nothing happens when i click on the Buy button. Thanks

@berk-can
Copy link
Author

I've installed it from start, started hardhat server, connected metamask and imported account then went into site problem didnt occured again

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

5 participants