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

Add support for top level file definitions as introduced in solc 0.8.22 #2205

Closed
0xalpharush opened this issue Oct 30, 2023 · 0 comments
Closed
Labels
enhancement New feature or request High Priority

Comments

@0xalpharush
Copy link
Contributor

Describe the desired feature

event MyEvent(uint256 indexed a, uint256 indexed b);

contract Test {
    function test() public {
        emit MyEvent(1, 2);
    }
}

This requires adding a new top level parser to SlitherCompilationUnitSolc and updating find_top_level to include events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request High Priority
Projects
None yet
Development

No branches or pull requests

1 participant