Skip to content

Commit 628b40d

Browse files
authored
chore: switch to Prague hardfork by default (#272)
Related PR: foundry-rs/foundry#10565
1 parent 64cf128 commit 628b40d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/artifacts/solc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ impl YulDetails {
793793

794794
/// EVM versions.
795795
///
796-
/// Default is `Cancun`, since 0.8.25
796+
/// Default is `Prague`, since 0.8.30
797797
///
798798
/// Kept in sync with: <https://github.com/ethereum/solidity/blob/develop/liblangutil/EVMVersion.h>
799799
// When adding new EVM versions (see a previous attempt at https://github.com/foundry-rs/compilers/pull/51):
@@ -816,8 +816,8 @@ pub enum EvmVersion {
816816
London,
817817
Paris,
818818
Shanghai,
819-
#[default]
820819
Cancun,
820+
#[default]
821821
Prague,
822822
Osaka,
823823
}

crates/compilers/tests/project.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,7 @@ fn can_create_standard_json_input_with_external_file() {
26782678
]
26792679
);
26802680

2681-
let solc = Solc::find_or_install(&Version::new(0, 8, 24)).unwrap();
2681+
let solc = Solc::find_or_install(&Version::new(0, 8, 27)).unwrap();
26822682

26832683
// can compile using the created json
26842684
let compiler_errors = solc
@@ -2703,7 +2703,7 @@ fn can_compile_std_json_input() {
27032703
assert!(input.sources.contains_key(Path::new("lib/ds-test/src/test.sol")));
27042704

27052705
// should be installed
2706-
if let Ok(solc) = Solc::find_or_install(&Version::new(0, 8, 24)) {
2706+
if let Ok(solc) = Solc::find_or_install(&Version::new(0, 8, 28)) {
27072707
let out = solc.compile(&input).unwrap();
27082708
assert!(out.errors.is_empty());
27092709
assert!(out.sources.contains_key(Path::new("lib/ds-test/src/test.sol")));
@@ -2767,7 +2767,7 @@ fn can_create_standard_json_input_with_symlink() {
27672767
]
27682768
);
27692769

2770-
let solc = Solc::find_or_install(&Version::new(0, 8, 24)).unwrap();
2770+
let solc = Solc::find_or_install(&Version::new(0, 8, 28)).unwrap();
27712771

27722772
// can compile using the created json
27732773
let compiler_errors = solc
@@ -2936,7 +2936,7 @@ async fn can_install_solc_and_compile_std_json_input_async() {
29362936
tmp.assert_no_errors();
29372937
let source = tmp.list_source_files().into_iter().find(|p| p.ends_with("Dapp.t.sol")).unwrap();
29382938
let input = tmp.project().standard_json_input(&source).unwrap();
2939-
let solc = Solc::find_or_install(&Version::new(0, 8, 24)).unwrap();
2939+
let solc = Solc::find_or_install(&Version::new(0, 8, 27)).unwrap();
29402940

29412941
assert!(input.settings.remappings.contains(&"ds-test/=lib/ds-test/src/".parse().unwrap()));
29422942
let input: SolcInput = input.into();

0 commit comments

Comments
 (0)