Created
May 10, 2021 20:34
-
-
Save percybolmer/767f39be9910d4b365940c4ec8666787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @notice Wrap the ERC20 constructor with our own construtor, in this case we dont do anything but call the ERC constructor. | |
*/ | |
constructor() ERC20("DevToken", "DEVTK"){ | |
// Here we mint 100000 tokens to the account that creates the smart contract, 18 0s because ERC20 uses 18 Decimals | |
_mint(msg.sender, 100000); | |
// Initialize stakes array | |
stakes.push(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment