thuglabs/solana-nft-token-metadata-update

Download & Update issue on mainnet

Closed this issue · 1 comments

Hi jamland,
Thanks for the great work on this project. It really helps with the implementation of blind-box feature.
When I do sudo yarn download-metadata -e mainnet-beta it does fetch the metadata uri correctly, but the metadata isn't loaded:
Save the metadata loaded from the chain result >>> {}

I tried to sudo yarn run update the metadata uri without downloading, using the file from ~/.cache, I had replaced the URI of the item that I wanted to change, then cp the file to src/data/mainnet-beta-temp; however, it's not detecting any item to be updated despite I had changed the URI (at "17":{"link":) :
Number of items to be updated: 0 0 items have been updated! 🚫 No failed transactions. Life is good! 😎
Please let me know if there are places I can add additional logging for identifying the root cause of this. Thank you so much!

I was able to fix the issue by correcting CANDY_MACHINE_ID at .constant. somehow the mintMetaData?.data.creators[0].address isn't the same "candyMachine": id from .cache