0

For a test project, I need to write the etherdelta's contract. but "function EtherDelta (address admin_, address feeAccount_, address accountLevelsAddr_, uint feeMake_, uint feeTake_, uint feeRebate_) { admin = admin_; feeAccount = feeAccount_; accountLevelsAddr = accountLevelsAddr_; feeMake = feeMake_; feeTake = feeTake_; feeRebate = feeRebate_; }

function () { throw; } "I don't know how to fill this part. I'm getting an error because I can't fill this up, and I can't print the contract.

closed as unclear what you're asking by Nicolas Massart, Shawn Tabrizi, Achala Dissanayake, Briomkez, shane Oct 2 '18 at 17:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Post at least links to the code you are talking about please. – Nicolas Massart Oct 2 '18 at 11:20
  • I have edited.. – Laura Wilson Oct 4 '18 at 20:35
0

The EtherDelta contract constructor takes the following arguments:
function EtherDelta(address admin_, address feeAccount_, address accountLevelsAddr_, uint feeMake_, uint feeTake_, uint feeRebate_)

Are you setting these to sensible values when deploying the contract through Remix?

They should be something like:

"0xadminadddress...", "0xfeeaccount...", "0x0", 0, 0, 0

  • Hello there. Thank you for your response. When I lift that part completely, I can write the contract. but I'm doing something wrong when filling up. can you show me how to fill the sample with? section: function EtherDelta (address admin_, address feeAccount_, address accountLevelsAddr_, uint feeMake_, uint feeTake_, uint feeRebate_) { admin = admin_; feeAccount = feeAccount_; accountLevelsAddr = accountLevelsAddr_; feeMake = feeMake_; feeTake = feeTake_; feeRebate = feeRebate_; } function () { throw; } – Laura Wilson Oct 3 '18 at 21:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.