简体   繁体   中英

Crowdsale contract, Problems when compiling with truffle,

Near the top under the first constructor, line 55 says "Warning: This declaration shadows an existing declaration." and line 57 says "Undeclared identifier. Did you mean "Recipient" or "Recipient"?"

Unsure what to do cannot find a similar situation online.




     constructor (address payable Recipient) public{ = 
         administrator = msg.sender;
         Recipient = _Recipient; = 

   

You're assignment is in reverse

Recipient = _Recipient

You probably want something like this instead (assuming you have a local variabled declared called _Recipient

_Recipient = Recipient

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM