Skip to content

Add support for recent solidity compiler versions #119

@beeb

Description

@beeb

Describe the bug
I'm using the somewhat recent unchecked context (new in solidity 0.8.0) in my contract and it makes syntest fail with a ParserError.

Trace: ParserError: missing ';' at '{' (5:18)

To Reproduce
Create a contract that uses the unchecked instruction with solidity version >= 0.8.0.

contract Test {
    function uncheckedInc(uint256 i) internal pure returns (uint256) {
        unchecked {
            return i + 1;
        }
    }
}

Try to run syntest-solitity as described in README.

Expected behavior
Should work

Screenshots

Environment information (please complete the following information):

  • OS: Ubuntu 20.04
  • Version 0.1.2

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleNo activity for an extensive period

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions