Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/evm/core/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl FoundryTransaction for TxEnv {
/// fields.
pub trait FoundryCfg: Cfg {
/// Sets the EVM spec (hardfork).
fn set_spec(&mut self, spec: SpecId);
fn set_spec(&mut self, spec: Self::Spec);

/// Sets the chain ID.
fn set_chain_id(&mut self, chain_id: u64);
Expand All @@ -237,8 +237,8 @@ pub trait FoundryCfg: Cfg {
fn set_tx_gas_limit_cap(&mut self, cap: Option<u64>);
}

impl FoundryCfg for CfgEnv {
fn set_spec(&mut self, spec: SpecId) {
impl<S: Into<SpecId> + Clone> FoundryCfg for CfgEnv<S> {
fn set_spec(&mut self, spec: S) {
self.spec = spec;
}

Expand Down
Loading