Designing the code in Solidity

In this project, we'll use Truffle to deploy and run our smart contract. When dealing with larger projects, it's always worth the initial effort that's invested in setting up a framework such as Truffle with all the required dependencies, because it saves us a lot of time in the long run while improving the development experience. Here are the steps for setting up our project with Truffle, since it's the first time we're mentioning it in this book. Later on, we'll assume that you know how to set up a project in Truffle, although we'll remind you plenty of times when needed:

  1. Let's start right away by creating a new folder called copyright:
  1. Inside that folder, run the truffle init command. If you don't have ...

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.