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

chore: use EvmVersion::Cancun #6906

Merged
merged 4 commits into from
Jan 27, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jan 26, 2024

this deprecates the tmp cancun config value and supports new EvmVersion::Cancun

blocked by svm 0.8.24 release

@DaniPopes
Copy link
Member

is anyone using this in foundry.toml?

@mattsse
Copy link
Member Author

mattsse commented Jan 26, 2024

https://github.com/hrkrshnn/tstore-template

perhaps we should keep the value for a bit?

@mattsse mattsse force-pushed the matt/support-cancun-evm-version branch from bc16a37 to 5b6618e Compare January 26, 2024 12:58
@DaniPopes
Copy link
Member

We can keep a deprecation warning for a bit and if it's true just set evmversion to cancun

@mattsse mattsse force-pushed the matt/support-cancun-evm-version branch from 5b6618e to 5470fea Compare January 26, 2024 15:18
@mattsse
Copy link
Member Author

mattsse commented Jan 26, 2024

good idea, rolled it back and added deprecation entry

/// Deprecated keys and their replacements.
///
/// See [Warning::DeprecatedKey]
pub static DEPRECATIONS: Lazy<HashMap<String, String>> =
Copy link
Member

@DaniPopes DaniPopes Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there aren't / there won't be many, this should just be a &[(&str, &str)] with a linear search where it's used. Same for STANDALONE_FALLBACK_SECTIONS

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, unrelated to this pr but might as well just fix that here

crates/config/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
@mattsse mattsse merged commit ae32c17 into foundry-rs:master Jan 27, 2024
20 checks passed
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.

2 participants