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

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

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).

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

修改前:


修改后:


发布了9 篇原创文章 · 获赞 2 · 访问量 6905

猜你喜欢

转载自blog.csdn.net/qq_25760623/article/details/80943335
今日推荐