Compile Solidity Contract:
Compile HelloWorld Solidity Contract
------------------------------------------------
unify ruffle compile --file HelloWorld.sol
------------------------------------------------
Note: Ensure the extension of file is .sol and it is placed inside contract directory that is present in the workspace.
Outcome :
It created the build directory where compiled json goes. In this case you will find HelloWorld.json in build/contract directory.
Note:
-
Please ensure you are using correct extension while compiling the file.
-
If your solidity contract is deep inside contract folder than prefix the –file option with nested directory path.
-
Assume you have HelloWorld.sol contract inside contract/first/second/HelloWorld.sol.
-
Then your compile command becomes:
unify ruffle compile --file first/second/HelloWorld.sol