helius-labs / helius-sdk

138 stars 40 forks source link

fix: createCollectionWebhook query params #16

Closed josip-volarevic closed 1 year ago

josip-volarevic commented 1 year ago

createCollectionWebhook is not working when fetching collections via collection NFTs since the query parameter is wrongly set to use firstVerifiedCreators on lines 284-286, in the while loop.

In order to replicate this error you would need to fetch a collection with more than 10000 items via collection NFT. e.g. y00ts collection on: 4mKSoDDqApmF1DqXvVTSL6tu2zixrSSNjqMxUnwvVzy2 because the issue is in the while loop which is triggered if there is pagination token present.