Skip to content

Commit

Permalink
boop
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk committed Feb 1, 2024
1 parent 2cb11ba commit 65f55ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/JB721Delegate/useNftCollectionMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ipfsGet } from 'lib/api/ipfs'
import { ipfsGatewayFetch } from 'lib/api/ipfs'
import { NftCollectionMetadata } from 'models/nftRewards'
import { useQuery } from 'react-query'
import { cidFromUrl } from 'utils/ipfs'
Expand All @@ -17,7 +17,7 @@ export function useNftCollectionMetadata(uri: string | undefined) {
throw new Error('NFT Contract URI invalid.')
}

const response = await ipfsGet<NftCollectionMetadata>(cid)
const response = await ipfsGatewayFetch<NftCollectionMetadata>(cid)
return response.data
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useProjectMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ipfsGet } from 'lib/api/ipfs'
import { ipfsGatewayFetch } from 'lib/api/ipfs'
import { AnyProjectMetadata, consolidateMetadata } from 'models/projectMetadata'
import { useQuery } from 'react-query'

Expand All @@ -10,7 +10,7 @@ export function useProjectMetadata(uri: string | null | undefined) {
throw new Error('Project URI not specified.')
}

const response = await ipfsGet<AnyProjectMetadata>(uri)
const response = await ipfsGatewayFetch<AnyProjectMetadata>(uri)
const metadata = consolidateMetadata(response.data)
return metadata
},
Expand Down

0 comments on commit 65f55ee

Please sign in to comment.