以太坊發行代幣,合約腳本編譯錯誤。

廢話不多說,直接說重點。

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

這錯誤,其實很明顯是版本的問題,但是怎麼解決呢?直接上代碼 

修改前:


修改後:


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章