I have a lot of experience in programming but I'm a noob when it comes to ethereum programming. When I try to compile the code with truffle I have this error: ParserError: Expected event name or path on lines where I use events EthTransfered and EthRefunded.

My source code: https://github.com/amiramieng/simplebyte-contract/blob/master/contracts/SimpleByteTokenCrowdsale.sol


remove the dot after emit

Call events like so:

emit EthTransferred('forwarding funds to wallet')

Instead of

  • What about this one? TypeError: Member "forwardFunds" not found or not visible after argument-dependent lookup in contract super SimpleByteTokenCrowdsale super.forwardFunds();
    – Bill Hicks
    May 25 '18 at 21:03
  • quick guess: add an underscore as that's what the super function is called in crowdsale.sol : super._forwardFunds();
    – Nico
    May 25 '18 at 21:07

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.