gemworks / gem-farm-ui

React UI for Gem Farm
https://gem-farm-ui.vercel.app/
31 stars 49 forks source link

NFT not showing when i connect wallet #1

Closed omaritto99 closed 2 years ago

omaritto99 commented 2 years ago

Hey ,

please when i connect the wallet to the minting page i can't see the NFTs on the website , with a message saying ' There are no NFTs on your vault.' i have tried to chnage the RPC to : https://api.devnet.solana.com instead of : https://wispy-icy-glitter.solana-devnet.quiknode.pro/8e987a31160f3b52d01f5706b34a86698164e30b/

but still the same problem

thanks for help

JerryIT1 commented 2 years ago

did you add the creator address to mint token to the whitelisted addresses?

omaritto99 commented 2 years ago

where is this @JerryIT1 ? on the gem farm ?

JerryIT1 commented 2 years ago

Yes it will be done on the gemfarm website itsself, I havnt used this yet but just looking at the files I am assuming all backend things are done through https://www.gemfarm.gg/manager and the UI is just using it sorta as an API

omaritto99 commented 2 years ago

yeah i have added that to the gem farm , but still i can't see the NFT's on my wallet on the UI

daddydonke commented 2 years ago

Same issue. Reviewing useWalletNFTs.tsx for issues.

JerryIT1 commented 2 years ago

Solved: Go to file useGemFarmStaking.ts and replace the candy machine ID.

daddydonke commented 2 years ago

useGemFarmStaking.ts

Your Candy Machine needs to be used to replace: '9bAVeEj62aBZVspYu5iEo2GSLRzFwLYgEsX5CoeCHN2n'

omaritto99 commented 2 years ago

Working fine now , thanks guys

eliagoris commented 2 years ago

Yoo I forgot to mention that.

useGemFarmStaking.ts

Your Candy Machine needs to be used to replace: '9bAVeEj62aBZVspYu5iEo2GSLRzFwLYgEsX5CoeCHN2n'

Yep I forgot to mention that on the readme.

Bad thing is through the UI would need another input

eliagoris commented 2 years ago

Last commit (https://github.com/gemworks/gem-farm-ui/commit/8e9f27488e247e21308516df3b032393a0647d7d) will fetch all NFTs regardless of creator address. Later I can see the best way to add a filter to it