Deploying smart contracts with Truffle is not a straightforward process: you must go through a few different files to modify the expected behavior of Truffle. You see, Truffle needs to know where to deploy your contracts, the constructor parameters, and the deployment order, among other things; therefore it's necessary that you configure all the moving parts to be able to deploy your contract continuously. Once set up, you'll be able to re-deploy new versions with just a command since Truffle will know exactly what you need to get done, how, and where.
We will deploy our contract using the following steps:
- First, you must compile your contract with truffle compile since you can only deploy compiled ...