废话不多说,直接说重点。
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).
这错误,其实很明显是版本的问题,但是怎么解决呢?直接上代码
修改前:
修改后: