Lesson 11: Basic NFT: "Invalid data" error when minting. #1273
-
Used Shiba inu and made a json formated file both NFT and json is uploaded on IPFS: LINK
I am not sure whats wrong here. The NFT format seems to be correct. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
Additional info.
@theirrationalone Please could you help ? |
Beta Was this translation helpful? Give feedback.
-
Hello @AbhiSharma1210 This issue is related to wrong argument provided in your MintNFT script. Make sure if below code is indeed returning correct contract address. address mostRecentlyDeployed = DevOpsTools.get_most_recent_deployment(
"ColorNft",
block.chainid
); You can also manually provide proper contract address and check if that solves the issue |
Beta Was this translation helpful? Give feedback.
-
It is working when I use the correct contract address, its definitely an issue with the devOps tools |
Beta Was this translation helpful? Give feedback.
Yo guys,
I still do believe that whole problem lays in DevOpsTools and
get_most_recent_deployment
function... @AbhiSharma1210 did you try replacingDevOpsTools.get_most_recent_deployment( "ColorNft", block.chainid );
with actual contract address?