throwError('Metadata validation failed. The metadata files must contain an image URL.')
}
if(!file.image.startsWith('ipfs://')){
throwError('Metadata file validation failed: The corresponding value for image must be an IPFS URL.')
}
})
.catch(()=>{
throwError(
`Metadata validation failed. Please check that the metadata files in the IPFS folder are valid JSON.`,
)
}),
)
.catch(()=>{
throwError(
`Unable to fetch metadata from ${tokenUri}. Metadata validation failed. Please check that the base token URI points to an IPFS folder with metadata files in it.`,