Skip to content

Minor change cause sample-contract to not compile #28

Description

@gpersoon

I've taken a contract from https://smartcontract.codes/ : LikeCoin
0x02f61fd2...992640cf98
image

When i click on it, it opens in https://ethereum-play.github.io/editor-solidity/ and compiles fine.
However when i start editting it, by just typing a space (or even do a page refresh): it suddenly doesn't compile any more and shows the error:

[
  {
    "component": "general",
    "formattedMessage": "MyContract:8:47: ParserError: Expected token LBrace got reserved keyword 'Pure'\n  function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n                                              ^\n",
    "message": "Expected token LBrace got reserved keyword 'Pure'",
    "type": "ParserError"
  }
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions