Created
March 27, 2019 13:34
-
-
Save MaryKuz/bc212d76769703a29a2a5c9190ca1f20 to your computer and use it in GitHub Desktop.
Adding basic information about token
This file contains 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
/* 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