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

Fix incorrect state mutability identification #9

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

0xGeorgii
Copy link
Collaborator

@0xGeorgii 0xGeorgii commented Feb 8, 2024

This PR fixed incorrect state mutability identification for the various structures, such as:

const state mutability for the state variable declaration

contract Example {
    uint256 constant x = 1;
}

payable state mutability for the function return parameter variable declaration

function test() public returns(address payable) {}

Now, these cases are handled correctly after the bug in the version 0.0.3.

@0xGeorgii 0xGeorgii added the grammar Solidity.g4 changes are required label Feb 8, 2024
@0xGeorgii 0xGeorgii self-assigned this Feb 8, 2024
@0xGeorgii 0xGeorgii merged commit 31a439a into main Feb 8, 2024
2 checks passed
@0xGeorgii 0xGeorgii deleted the fix-incorrect-state-mutability-indentification branch February 8, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar Solidity.g4 changes are required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant