This recipe focuses on compiling smart contracts for a Truffle project. You will also learn about compiling multiple contracts and locating the output to use with your project.
Compiling smart contracts
Getting ready
You need to have a working installation of Truffle in your system to try this recipe. Truffle uses solc-js to compile your smart contracts, and it will be installed along with Truffle. Ensure that you have the latest version of both using the version command:
truffle version
How to do it...
-
Smart contracts for a Truffle project are located in the./contracts...