Skip to content

Commit

Permalink
chore: use EvmVersion::Cancun
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jan 26, 2024
1 parent fa6b46d commit 5b6618e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ foundry-test-utils = { path = "crates/test-utils" }

# solc & compilation utilities
foundry-block-explorers = { version = "0.2.0", default-features = false }
foundry-compilers = { version = "0.2.2", default-features = false }
foundry-compilers = { version = "0.2.3", default-features = false }

## revm
# no default features to avoid c-kzg
Expand Down
10 changes: 0 additions & 10 deletions crates/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,6 @@ pub struct Config {
/// This includes what operations can be executed (read, write)
pub fs_permissions: FsPermissions,

/// Temporary config to enable [SpecId::CANCUN]
///
/// <https://github.com/foundry-rs/foundry/issues/5782>
/// Should be removed once EvmVersion Cancun is supported by solc
pub cancun: bool,

/// Address labels
pub labels: HashMap<Address, String>,

Expand Down Expand Up @@ -697,9 +691,6 @@ impl Config {
/// Returns the [SpecId] derived from the configured [EvmVersion]
#[inline]
pub fn evm_spec_id(&self) -> SpecId {
if self.cancun {
return SpecId::CANCUN
}
evm_spec_id(&self.evm_version)
}

Expand Down Expand Up @@ -1754,7 +1745,6 @@ impl Default for Config {
Self {
profile: Self::DEFAULT_PROFILE,
fs_permissions: FsPermissions::new([PathPermission::read("out")]),
cancun: false,
__root: Default::default(),
src: "src".into(),
test: "test".into(),
Expand Down
1 change: 1 addition & 0 deletions crates/config/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ pub fn evm_spec_id(evm_version: &EvmVersion) -> SpecId {
EvmVersion::London => SpecId::LONDON,
EvmVersion::Paris => SpecId::MERGE,
EvmVersion::Shanghai => SpecId::SHANGHAI,
EvmVersion::Cancun => SpecId::CANCUN,
}
}

Expand Down
1 change: 0 additions & 1 deletion crates/forge/tests/cli/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ forgetest!(can_extract_config_values, |prj, cmd| {
doc: Default::default(),
fs_permissions: Default::default(),
labels: Default::default(),
cancun: true,
__non_exhaustive: (),
__warnings: vec![],
};
Expand Down

0 comments on commit 5b6618e

Please sign in to comment.