@@ -39,6 +39,7 @@ use foundry_compilers::{
3939 multi:: { MultiCompilerParser , MultiCompilerRestrictions } ,
4040 solc:: { CliSettings , SolcLanguage , SolcSettings } ,
4141} ;
42+ use foundry_evm_hardforks:: FoundryHardfork ;
4243use regex:: Regex ;
4344use revm:: primitives:: hardfork:: SpecId ;
4445use semver:: Version ;
@@ -235,6 +236,8 @@ pub struct Config {
235236 /// The EVM version to use when building contracts.
236237 #[ serde( with = "from_str_lowercase" ) ]
237238 pub evm_version : EvmVersion ,
239+ /// The EVM hardfork to use when simulating execution.
240+ pub hardfork : Option < FoundryHardfork > ,
238241 /// List of contracts to generate gas reports for.
239242 pub gas_reports : Vec < String > ,
240243 /// List of contracts to ignore for gas reports.
@@ -2483,6 +2486,7 @@ impl Default for Config {
24832486 include_paths : vec ! [ ] ,
24842487 force : false ,
24852488 evm_version : EvmVersion :: Prague ,
2489+ hardfork : None ,
24862490 gas_reports : vec ! [ "*" . to_string( ) ] ,
24872491 gas_reports_ignore : vec ! [ ] ,
24882492 gas_reports_include_tests : false ,
0 commit comments