Skip to content

Commit

Permalink
axios timeout increased
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Nov 4, 2023
1 parent 4bf3d08 commit 750d957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const getNftCollectionNfts = async (
if (nonEvaluableContractAddresses.includes(contractAddress.toUpperCase())) {
throw new Error(`Unable to evaluate collection with contractAddress: ${contractAddress}`)
}
const axios = new AxiosJson({ timeout: 500 })
const axios = new AxiosJson({ timeout: 2000 })
const provider = getProviderFromEnv(chainId)
const enumerable = ERC721Enumerable__factory.connect(contractAddress, provider)
const storage = ERC721URIStorage__factory.connect(contractAddress, provider)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getNftFields = async (
*/
tokenId: string,
): Promise<NftInfo> => {
const axios = new AxiosJson({ timeout: 500 })
const axios = new AxiosJson({ timeout: 2000 })
const storage = ERC721URIStorage__factory.connect(contractAddress, provider)
const supply1155 = ERC1155Supply__factory.connect(contractAddress, provider)
const { type: nftType } = await getNftCollectionMetadata(contractAddress, provider)
Expand Down

0 comments on commit 750d957

Please sign in to comment.