Skip to content

Instantly share code, notes, and snippets.

@viannaandreBR
Created July 30, 2020 06:36
Show Gist options
  • Select an option

  • Save viannaandreBR/a29cebe94b67e1e4533659c8ed606003 to your computer and use it in GitHub Desktop.

Select an option

Save viannaandreBR/a29cebe94b67e1e4533659c8ed606003 to your computer and use it in GitHub Desktop.
constructor with _initialSupply
pragma solidity >=0.4.2;
contract DappToken{
// Constructor
// Set the Total number of tokens
// Read the total number of tokens
uint256 public totalSupply;
constructor (uint256 _initialSupply) public{
totalSupply = _initialSupply;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment