holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
160 stars 37 forks source link

NFT metadata returned from GraphQL API is outdated #942

Closed serejke closed 1 year ago

serejke commented 1 year ago

Describe the bug This NFT has B7TM8HTFWooGj49gsRrjPEuiMpkfwn7Eu2EGxCvxtC47 as the only verified creator with share = 0, but the API returns 3 creators:

{
        "address": "AfEbehSXtEWA3LSkqUL1APfFFoUpyRpbJxPAnU2HBKgF",
        "share": 0,
        "verified": true
      },
      {
        "address": "B7TM8HTFWooGj49gsRrjPEuiMpkfwn7Eu2EGxCvxtC47",
        "share": 100,
        "verified": true
      },
      {
        "address": "7euNVamqd3MjtvHU51YoGztpMVGVnt1j2ezzFQwgHSmi",
        "share": 10,
        "verified": false
      }

NFT's metadata has been updated, but the indexer did not notice.

Steps to reproduce

Using graphql-request library on nftByMintAddress Graph QL endpoint:

const query = gql`
    query nftByMintAddress($address: String!) {
      nftByMintAddress(address: $address) {
        mintAddress
        owner {
          address
        }
        creators {
          address
          share
          verified
        }
        collection {
          nft {
            mintAddress
          }
        }
      }
    }
`

  const data = await request(
    'https://graph.holaplex.tools/v1/graphql',
    query,
    {
      address: new PublicKey('yHKxd4fqkw1hGKA86PNyGBTUUVMjuRodsTFtMNdnPgb'),
    }
  );

  console.log(JSON.stringify(data));
kespinola commented 1 year ago

Thanks @serejke checking this out.