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

Allow to override the EVM version per language when compiling #1418

Merged

Conversation

danhper
Copy link
Contributor

@danhper danhper commented Jan 31, 2022

What I did

Allow to override the evm_version per language, e.g.

compiler:
  evm_version: london
  solc:
    version: 0.8.9
  vyper:
    evm_version: istanbul

How I did it

compile_and_format can now either take a string or a dict that must map all the used languages (Vyper and Solidity) to their desired EVM version.
The change is fully backward-compatible.

How to verify it

Try the YAML config given above.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

@iamdefinitelyahuman iamdefinitelyahuman merged commit d4dbcc2 into eth-brownie:master Feb 5, 2022
@joshim2021
Copy link

427131bbac

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.

3 participants