Skip to content

Lesson 14 'ipfs://undefined' #798

Answered by PatrickAlphaC
LordReya asked this question in Q&A
Discussion options

You must be logged in to vote

Something is going wrong here:

        //create metadata
        // upload to the metadata
        let tokenUriMetadata = { ...metadataTemplate }
        tokenUriMetadata.name = files[imageUploadResponseIndex].replace(".jpg", "")
        tokenUriMetadata.description = `an adorable ${tokenUriMetadata.name} Jobro!`
        tokenUriMetadata.image = `ipfs://${imageUploadResponses[imageUploadResponseIndex].IpfshHash}`
        console.log(`Uploading ${tokenUriMetadata.name}...`)
        //store the file
        const metadataUploadResponse = await storeTokenUriMetadata(tokenUriMetadata)
        tokenUris.push(`ipfs://${metadataUploadResponse.IpfshHash}`)

I'd do some console.logs to figure out w…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LordReya
Comment options

Answer selected by LordReya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants