以太坊发行代币,合约脚本编译错误。

废话不多说,直接说重点。

Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function MyAdvancedToken(
    ^ (Relevant source part starts here and spans across multiple lines).

这错误,其实很明显是版本的问题,但是怎么解决呢?直接上代码 

修改前:

以太坊发行代币,合约脚本编译错误。

修改后:

以太坊发行代币,合约脚本编译错误。