Compiling Contracts using Truffle

Compiling Contracts using Truffle#

We have everything in place to use a Truffle script to compile (and eventually deploy) our smart contracts for us. The script is called truffle compile.

At this point, you should have one terminal running Ganache. In a new terminal, jump into the erc-20-token folder and run truffle compile in the root of that folder.

After running this command, Truffle will read all the files in the contracts/ folder and run them through a Solidity compiler (according to the version we specified in the truffle-config.js file).

After running the truffle compile script, we see something like this:


This page is a preview of Creating an ERC20 Token on Ethereum

No discussions yet