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 undefined variable detection #1409

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

LucasSte
Copy link
Contributor

The contract I added in the tests was working properly in Solang v0.3.0, but it caused a panic in this line on the main branch.

I couldn't identify what has changed from the release till now, but I deemed the logic for reporting undefined variables and stop optimizations erroneous.

Signed-off-by: Lucas Steuernagel <lucas.tnagel@gmail.com>
@xermicus
Copy link
Contributor

What's the root cause of this? If this is a regression we should investigate what exactly broke

@LucasSte
Copy link
Contributor Author

What's the root cause of this? If this is a regression we should investigate what exactly broke

I dug into the code, but I couldn't pinpoint exactly which change caused the problem.

@xermicus
Copy link
Contributor

Fair enough. LGTM. Can you open an issue so we don't forget about this?

@LucasSte LucasSte merged commit 7519e36 into hyperledger-solang:main Jun 30, 2023
@LucasSte LucasSte deleted the undefined-fix branch June 30, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants