November 2018
Intermediate to advanced
528 pages
13h 21m
English
This public state variable defines the total number of tokens across all address balances. Again, the associated getter function will be automatically generated at compile time. In the case of our token, we will pass in a value for totalSupply to our constructor, so we only want to declare it here:
uint256 public totalSupply;
Read now
Unlock full access