Cyfrin / foundry-nft-cu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting `No contract deployed` error

AAYUSH-GUPTA-coder opened this issue · comments

I am getting a No contract deployed error when interacting with the MintMoodNft script. I think this is a DevOpsTools library error. It does not get the address of the MoodNft contract.

image

Open your terminal and run the command "sudo apt-get install jq."

Than run it again.

The script likely uses jq to parse JSON data, such as contract deployment details, from a file or API response. Without jq, the script can't read the required information, leading to the "No contract deployed" error.

So basically, if you don't have installed jq, the function

DevOpsTools.get_most_recent_deployment()

cant parse the JSON file.

windows users can use chocolatey to install jq

  • Run powershell or git bash as administrator and run this command
choco install jq

Linux users can use

sudo apt-get install jq

Same issue appeared working on a MAC

brew install jq