1

I'm currently running Brownie in Studio Visual Code. My problem is that when I write a smart contract and try to compile it using command "Brownie Compile" I don't' receive a .json file in the "build" folder afterwards. I receive a message that says:

"INFO: Could not find files for the given pattern(s). Brownie v1.14.2 - Python development framework for Ethereum

Project has been compiled. Build artifacts saved at C:\Users\Brian Lee.brownie\New folder\build\contracts"

It says project has been compiled but I don't see the .json file anywhere. Do you have any suggestions? I think I may have set up my folders incorrectly. I'm new to coding in general so I'm experiencing a lot of confusion. Thank you!

3 Answers 3

0

You have not installed solidity dependencies. You must install a solidity compiler and visual studio 2019 to sort this out. Follow this guidance https://docs.soliditylang.org/en/v0.8.4/installing-solidity.html#versioning

0

To eliminate the obvious, make sure you have saved the .sol file. I had the same issue, and realized that the .sol file with the contract code hadn't been saved only when looking at the contents of the directory and noticing the file was 0 bytes.

0

you should move the *.sol contract file to the contract folder. Brownie only compiles files present in this folder .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.