1

When compiling my contract code in truffle I receive this error:

Error parsing zeppelin-solidity/contracts/token/ERC20/StandardToken.sol: ParsedContract.sol:33:18: ParserError: Expected token Semicolon got 'LParen' emit Transfer(_from, _to, _value);

I am running through this guide: https://maksimivanov.com/posts/ethereum-react-dapp-tutorial

I download zeppelin-solidity's files, and copied and paste the code. I don't understand why this wouldn't be working. I tried changing the pragma to 4.21 because that is what the standardToken's solidity code is written in. How do I fix this problem?

  • 1
    What version of truffle are you using? Try updating to the latest that requires solc 0.4.23. – Ismael May 5 '18 at 22:45
  • 1
    It was 4.1.3, updated to 4.1.8 and it fixed the issue. Thank you. – Fortune May 5 '18 at 23:15
0

I updated to truffle 4.1.8 and this fixed my issue immediately. I thought I had updated, but I didn't update truffle globally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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