-
-
Notifications
You must be signed in to change notification settings - Fork 804
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
refactor[ux]: add venom
as experimental-codegen
alias
#4337
refactor[ux]: add venom
as experimental-codegen
alias
#4337
Conversation
@@ -254,6 +254,8 @@ def get_settings(input_dict: dict) -> Settings: | |||
|
|||
optimize = input_dict["settings"].get("optimize") | |||
experimental_codegen = input_dict["settings"].get("experimentalCodegen") | |||
if experimental_codegen is None: | |||
experimental_codegen = input_dict["settings"].get("venom") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe throw an exception if both are set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can we add tests for conflicts - when both are set
tests/unit/ast/test_pre_parser.py
Outdated
@@ -218,6 +237,15 @@ def test_parse_pragmas(code, pre_parse_settings, compiler_data_settings, mock_ve | |||
# pragma evm-version cancun | |||
# pragma evm-version shanghai | |||
""", | |||
# duplicit setting of venom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: duplicate
venom
as experimental-codegen
alias
…4337) Make "venom" an alternative alias to the "experimental_codegen" flag. Add the alias to cli, pre-parser, and json parser.
What I did
Make a "venom" alias to "experimental_codegen" flag.
See #4334.
How I did it
Add the alias to cli, pre-parser, and json parser.
How to verify it
All exisiting tests work with old flas as well as new tests with
venom
.Commit message
Description for the changelog
Cute Animal Picture