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

Move evm_version from fork config to network config #89

Closed
fubuloubu opened this issue Feb 5, 2024 · 3 comments · Fixed by #112
Closed

Move evm_version from fork config to network config #89

fubuloubu opened this issue Feb 5, 2024 · 3 comments · Fixed by #112

Comments

@fubuloubu
Copy link
Member

Overview

It would be useful to be able to run anvil in a non-forked configuration using different evm rules, such as right now I am trying to test an EIP from Cancun while Anvil is still using Paris rules by default

Specification

Move it to the top level config like following

foundry:
  evm_version: str = "latest"  # default in anvil

Dependencies

This will definitely conflict with how evm version works with fork networks

could be related to #88

Copy link

linear bot commented Feb 5, 2024

@antazoey
Copy link
Member

Why not have it both at top level and in the forks?

@antazoey
Copy link
Member

OK I got the non-breaking change version in the attached PR
you can set the evm-version at foundry's config, root, not in the forks.
the forks still work, but if they are not set, it will use the global one.

I think this is better because it gives you more control if you need it, but you can also just use the root level evm-version for ease.

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 a pull request may close this issue.

2 participants