廢話不多說,直接說重點。
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).
這錯誤,其實很明顯是版本的問題,但是怎麼解決呢?直接上代碼
修改前:
修改後: