Skip to content

Instantly share code, notes, and snippets.

@MaryKuz
Created March 27, 2019 13:34
Show Gist options
  • Save MaryKuz/bc212d76769703a29a2a5c9190ca1f20 to your computer and use it in GitHub Desktop.
Save MaryKuz/bc212d76769703a29a2a5c9190ca1f20 to your computer and use it in GitHub Desktop.
Adding basic information about token
/* Initializes contract with initial supply tokens to the creator of the contract */
function MyToken(uint256 initialSupply, string tokenName, string tokenSymbol, uint8 decimalUnits) {
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
name = tokenName; // Set the name for display purposes
symbol = tokenSymbol; // Set the symbol for display purposes
decimals = decimalUnits; // Amount of decimals for display purposes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment