Name and symbol (optional)

The name of our token and the associated symbol are not mandatory parts of the implementation, but both are commonly included. We will define them as public state variables at the top of our contract, meaning the associated getter functions will be generated automatically:

string public name = "Packt ERC20 Token";
string public symbol = "PET";
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset