Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save percybolmer/767f39be9910d4b365940c4ec8666787 to your computer and use it in GitHub Desktop.
Save percybolmer/767f39be9910d4b365940c4ec8666787 to your computer and use it in GitHub Desktop.
/**
* @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