1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Compilation error in ethereum wallet

Discussion in 'Finance' started by user3207230, Aug 2, 2020 at 9:55 AM.

  1. user3207230

    user3207230 Guest

    I am trying to compile the example contract in https://ethereum.org/token and following along with the instructions.

    The Ethereum wallet cannot compile it though. I get the following error message

    Expected ',' but got identifier
    interface tokenRecipient { function receiveApproval(address _from,
    uint256 _value, address _token, bytes calldata _extraData) external; }


    First time trying to do a contract in Ethereum, and figured that the example code from the official Ethereum website should work. Can anyone tell me what is wrong?

    Login To add answer/comment

Share This Page