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

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

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

修改前:

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

修改后:

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

相关文章:

  • 2021-11-11
  • 2021-11-08
  • 2021-12-01
  • 2021-04-11
  • 2021-09-14
  • 2021-05-24
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2021-12-22
  • 2021-12-04
  • 2021-06-17
  • 2022-01-29
  • 2021-11-24
  • 2021-06-11
相关资源
相似解决方案