The Token Improvement
In the previous part we were developing our simple token based on a preset from OpenZeppelin. On top of it we developed a lockable component, but we did this with the ERC721PresetMinterPauserAutoId.
In this tutorial you will learn one specific component, which is the secondary royalties. To do that, we will start from scratch with a simple ERC721 Token from OpenZeppelin. Itās not a direct continuation of the previous part, itās an ERC721 Token with minimal requirements from scratch.
Prerequisite
To get started, you need:
Nodeā and Truffleā installed (best globally).
npm install -g truffle
Empty Truffle Project with OpenZeppelin ERC721 Token
Open a new empty directory in your favorite IDE (here it is Visual Studio Code). And then open a terminal and type in:
truffle init
npm init -y
npm install @openzeppelin/contracts
Great, now we can get started with the actual token!
Last updated on