Deploying your smart contract with Truffle

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:

  1. First, you must compile your contract with truffle compile since you can only deploy compiled ...

Get Mastering Ethereum now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.