Lesson 14 'ipfs://undefined' #798
-
For some reason it doesn't show the IPFS address even though its deploying correctly, as it should. Here is the code:
That is the terminal code:
|
Beta Was this translation helpful? Give feedback.
Answered by
PatrickAlphaC
Jul 7, 2022
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LordReya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something is going wrong here:
I'd do some
console.log
s to figure out w…