codeSTACKr / create-10k-nft-collection

MIT License
2.21k stars 717 forks source link

[SOLVED] [Bug]: update_info doesn't change uri in individual jsons #160

Open Vatroslaw opened 2 years ago

Vatroslaw commented 2 years ago

Version

General Question

What happened?

Hey, guys! I'm a non-coder, please use all the baby steps :)

I've generated the images and jsons, sent them off to be uploaded to ipfs then got the CID back to update jsons. I've placed it into config.js, ran the update_info, but it doesn't change uri in individual jsons, it only in inputs them to _metadata.

Plus, another problem arises there, as it replaces the file names (1.png, 2.png etc) with undefined as well as "image": "ipfs://myCID/undefined.png

And a new undefined.json is created, which is just a duplicate of the last json on the list.

What have you tried?

I'm slowly losing it as I've read a ton, tried a lot of things suggested but nothing works. I'd appreciate all the help :D

Relevant log output

No response

Protect your information

Vatroslaw commented 2 years ago

I have found a workaround:

https://www.majorgeeks.com/files/details/fart.html https://emtunc.org/blog/03/2011/farting-the-easy-way-find-and-replace-text/

Aberzelius commented 2 years ago

Has anyone found a solution for this? Will check FART options to see if they work properly. Would appreciate help on that. Thanks