-
Notifications
You must be signed in to change notification settings - Fork 2k
chore: activate prague
hardfork and Solidity version 0.8.30
as default
#10565
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
Changes from all commits
7f46db2
3eb91bb
9ed7285
e62c33b
898c2eb
1eca04d
cdac80d
1dd0d54
fff560a
2ee2f17
ac42452
ca6259c
ee7d074
4e9348a
d67eadb
f8f3b1c
9edcccf
bd039fd
d4a76cb
d6c18ec
0355cc2
dd270f8
32811de
372d89d
c5d39b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ use clap::{Parser, Subcommand, ValueHint}; | |
use eyre::Result; | ||
use foundry_common::shell; | ||
use foundry_compilers::{artifacts::EvmVersion, Graph}; | ||
use foundry_config::Config; | ||
use foundry_config::{normalize_evm_version_vyper, Config}; | ||
use semver::Version; | ||
use serde::Serialize; | ||
use std::{collections::BTreeMap, path::PathBuf}; | ||
|
@@ -93,11 +93,16 @@ impl ResolveArgs { | |
.collect(); | ||
|
||
let evm_version = if shell::verbosity() > 1 { | ||
Some( | ||
EvmVersion::default() | ||
.normalize_version_solc(version) | ||
.unwrap_or_default(), | ||
) | ||
let evm = EvmVersion::default() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe can be simplified, or for future have a let mut evm = EvmVersion::default()
.normalize_version_solc(version)
.unwrap_or_default();
// Vyper does not yet support Prague, so we normalize it to Cancun.
if language.is_vyper() {
evm = normalize_evm_version_vyper(evm);
}
Some(evm) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, opened a follow-up ticket for me here: foundry-rs/compilers#278 We should either upstream this |
||
.normalize_version_solc(version) | ||
.unwrap_or_default(); | ||
|
||
// Vyper does not yet support Prague, so we normalize it to Cancun. | ||
if language.is_vyper() { | ||
Some(normalize_evm_version_vyper(evm)) | ||
} else { | ||
Some(evm) | ||
} | ||
} else { | ||
None | ||
}; | ||
|
Uh oh!
There was an error while loading. Please reload this page.