Cyfrin / foundry-nft-cu

21 stars 22 forks source link

Getting `No contract deployed` error #13

Closed AAYUSH-GUPTA-coder closed 3 months ago

AAYUSH-GUPTA-coder commented 11 months ago

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

yamisukii commented 11 months ago

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.

inishantjain commented 10 months ago

windows users can use chocolatey to install jq

the-first-elder commented 10 months ago

Linux users can use

sudo apt-get install jq

LlaneroHiboreo commented 10 months ago

Same issue appeared working on a MAC

brew install jq