These are chat archives for ethereum/tutorials

24th
Sep 2018
Law Zava
@lawzava
Sep 24 2018 00:49

Hi! I'm on Mac, trying to deploy test contract. Found this tut. but it's outdated: https://ethereum.org/token#the-code

using this code, but the "deploy" button doesn't do anything..

contract MyToken {
    /* This creates an array with all balances */
    mapping (address => uint256) public balanceOf;

    /* Initializes contract with initial supply tokens to the creator of the contract */
    constructor (
        uint256 initialSupply
        ) public {
        balanceOf[msg.sender] = initialSupply;              // Give the creator all initial token
    }

}