1. 程式人生 > >以太坊remix IDE編譯成功,合約賬戶部署介面編譯失敗

以太坊remix IDE編譯成功,合約賬戶部署介面編譯失敗

編寫以太坊官方solitidy語言文件demo時出現的問題:

Expected identifier, got 'eth_compileSolidity'
    constructor(
               ^

由此經過查詢資料後發現:以太坊mist客戶端合約部署繫結的編譯器是pragma solitidy ^0.4.21,不支援constructor建構函式,經過將建構函式修改為function name即可,0.4.22即支援construction。