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
The function:
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