easy-retro-pgf
easy-retro-pgf copied to clipboard
Fix types for fetch
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
toreturn (await r.json()) as T
-
https://github.com/gitcoinco/easy-retro-pgf/blob/main/src/utils/fetch.ts#L20