ethereum / wiki

The Ethereum Wiki
https://www.ethereum.org
14.75k stars 2.56k forks source link

Examples from the main docs on your website are mostly deprecated due to the constructor (...) (...) error #617

Closed mindfulme closed 4 years ago

mindfulme commented 6 years ago

The function:

    function MyToken(uint256 initialSupply) public {
        balanceOf[msg.sender] = initialSupply;
    }

gives the following error: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.

Solution: considered replace the example function in the documentation with the constructor method

mindfulme commented 6 years ago

Plus your Ethereum wallet takes to much processing power while running. Platform: MacOS.

jamesray1 commented 5 years ago

Please see https://github.com/ethereum/wiki/blob/master/ISSUE_TEMPLATE.md.