Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter complain on syntax to call create2 #294

Open
mfornet opened this issue Jun 10, 2021 · 0 comments
Open

Linter complain on syntax to call create2 #294

mfornet opened this issue Jun 10, 2021 · 0 comments
Labels

Comments

@mfornet
Copy link

mfornet commented Jun 10, 2021

Description
It should pass but complains about syntax error during linting:

contracts/test/StateTest.sol
  22:48    error    Syntax error: unexpected token {

For the code:

contract SelfDestructFactory {
    constructor() { }

    function deploy() public returns(address) {
        address addr = address(new SelfDestruct{salt: bytes32(uint256(0x1234))}());
        return addr;
    }
}

Line 22, is: address addr = address(new SelfDestruct{salt: bytes32(uint256(0x1234))}());

Steps to reproduce
This section may contain all or a combination of the following:

  • The command you used to lint
  • The solidity code over which you ran the linter
  • Contents of your .soliumrc.json file
  • Contents of your .soliumignore

In addition, you may add anything you feel is relevant.

Operating System
MacOS 10.15.7

Linter version
Solium version 1.2.5

Comments
If you'd like to share any additional information that doesn't fit in above sections or suggest a solution to the maintainers.

Priority
Medium

@mfornet mfornet added the bug label Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant