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

[GQL] nfts query is returning invalid accounts #562

Open
roederw opened this issue Jul 6, 2022 · 2 comments
Open

[GQL] nfts query is returning invalid accounts #562

roederw opened this issue Jul 6, 2022 · 2 comments

Comments

@roederw
Copy link
Contributor

roederw commented Jul 6, 2022

Query used to get bad data:

{"operationName":"GetNfts","variables":{"creators":["7UXmEd3bZgCbdjzxxAgxms3n389id1rKAWNaw1riEbTd"],"offset":0,"limit":100000},"query":"query GetNfts($creators: [PublicKey!]!, $limit: Int!, $offset: Int!) {\n nfts(creators: $creators, limit: $limit, offset: $offset) {\n address\n mintAddress\n updateAuthorityAddress\n creators {\n address\n verified\n __typename\n }\n __typename\n }\n}"}

Example of a bad account returned:

{ “__typename”: “Nft”, “address”: “4s8WY9ecF3xNpvWokhHg7utBuUa5YoDGQqCUi8L6fBed”, “mintAddress”: “2bqhNunJoXEM22MGgaRDGH9nVtARjfBvfzP89mgqVFrW”, “updateAuthorityAddress”: “817RTX5pWtuTkCUiMtR5wfwvCYwdSQyJ5RyF489UwkpJ”, “creators”: [ { “__typename”: “NftCreator”, “address”: “7UXmEd3bZgCbdjzxxAgxms3n389id1rKAWNaw1riEbTd”, “verified”: true }, { “__typename”: “NftCreator”, “address”: “817RTX5pWtuTkCUiMtR5wfwvCYwdSQyJ5RyF489UwkpJ”, “verified”: false } ] },

https://explorer.solana.com/address/2bqhNunJoXEM22MGgaRDGH9nVtARjfBvfzP89mgqVFrW

@roederw
Copy link
Contributor Author

roederw commented Jul 6, 2022

Looks like there are two entries for this NFT.

{ "__typename": "Nft", "name": "Debu #7", "address": "4s8WY9ecF3xNpvWokhHg7utBuUa5YoDGQqCUi8L6fBed", "mintAddress": "2bqhNunJoXEM22MGgaRDGH9nVtARjfBvfzP89mgqVFrW", "updateAuthorityAddress": "817RTX5pWtuTkCUiMtR5wfwvCYwdSQyJ5RyF489UwkpJ", "creators": [ { "__typename": "NftCreator", "address": "7UXmEd3bZgCbdjzxxAgxms3n389id1rKAWNaw1riEbTd", "verified": true }, { "__typename": "NftCreator", "address": "817RTX5pWtuTkCUiMtR5wfwvCYwdSQyJ5RyF489UwkpJ", "verified": false } ] },

{ "__typename": "Nft", "name": "Debu #7", "address": "B9qyFzMRTVYc95mak1Tdgu7nhaeRMaGAsFQJmm2vLcXC", "mintAddress": "APWX8KD73QjBsyaVxEhsD9auMTKfAXhTf73tVbqG8BDE", "updateAuthorityAddress": "817RTX5pWtuTkCUiMtR5wfwvCYwdSQyJ5RyF489UwkpJ", "creators": [ { "__typename": "NftCreator", "address": "7UXmEd3bZgCbdjzxxAgxms3n389id1rKAWNaw1riEbTd", "verified": true }, { "__typename": "NftCreator", "address": "817RTX5pWtuTkCUiMtR5wfwvCYwdSQyJ5RyF489UwkpJ", "verified": false } ] }

@kespinola
Copy link
Contributor

@roederw we've recently started to account for burned NFTs is that the case for these?

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

2 participants