easy-retro-pgf icon indicating copy to clipboard operation
easy-retro-pgf copied to clipboard

Fix types for fetch

Open carlbarrdahl opened this issue 1 year ago • 0 comments

EAS GraphQL API wraps response in data while metadata doesn't.

  • [ ] Update utils/fetchAttestations with the wrapping data (r.data.data...) https://github.com/gitcoinco/easy-retro-pgf/blob/fb4e97177b3e311881c830b769f3206ffa9b417c/src/utils/fetchAttestations.ts#L66-L80

  • [ ] Update utils/fetch to return (await r.json()) as T

  • https://github.com/gitcoinco/easy-retro-pgf/blob/main/src/utils/fetch.ts#L20

carlbarrdahl avatar Feb 06 '24 14:02 carlbarrdahl