Solidity

複製 etherdelta 程式碼

  • October 3, 2018

對於一個測試項目,我需要編寫 etherdelta 的合約。但是“函式 EtherDelta (地址 admin_, 地址 feeAccount_, 地址 accountLevelsAddr_, uint feeMake_, uint feeTake_, uint feeRebate_) { admin = admin_; feeAccount = feeAccount_; accountLevelsAddr = accountLevelsAddr_; feeMake = feeMake_; feeTake = feeTake_; feeRebate = feeRebate_; }

函式(){拋出;} “我不知道如何填寫這部分。我收到一個錯誤,因為我無法填寫,也無法列印契約。

EtherDelta 合約建構子採用以下參數:

function EtherDelta(address admin_, address feeAccount_, address accountLevelsAddr_, uint feeMake_, uint feeTake_, uint feeRebate_)

通過 Remix 部署合約時,您是否將這些設置為合理的值?

它們應該是這樣的:

“0xadminadddress…”、“0xfeeaccount…”、“0x0”、0、0、0

引用自:https://ethereum.stackexchange.com/questions/59852