ethereum / solidity

Solidity, the Smart Contract Programming Language
https://soliditylang.org
GNU General Public License v3.0
23.29k stars 5.77k forks source link

Unused Local Variable error in Crowdsale contract #2610

Closed ErvinSenaj closed 7 years ago

ErvinSenaj commented 7 years ago

Hi everyone, I've been trying to create a crowd sale contract but it does not compile and comes with the error "unused local variable". Really not sure what to do as the code came directly from the ethereum crowd sale guide. image

axic commented 7 years ago

This is actually a warning, just your IDE presents it as an error.

Remove the parameter names from transfer: contract token { function transfer(address, uint) {} }

axic commented 7 years ago

Please try https://remix.ethereum.org, which displays errors/warnings and join https://gitter.im/ethereum/solidity if you need more help.

axic commented 7 years ago

Tracked in https://github.com/ethereum/mist/issues/2797