These are chat archives for ethereum/tutorials

Sep 2018
Law Zava
Sep 24 2018 00:49

Hi! I'm on Mac, trying to deploy test contract. Found this tut. but it's outdated:

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