File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -904,6 +904,9 @@ impl Config {
904904 ) -> Result < BTreeMap < PathBuf , RestrictionsWithVersion < MultiCompilerRestrictions > > , SolcError >
905905 {
906906 let mut map = BTreeMap :: new ( ) ;
907+ if self . compilation_restrictions . is_empty ( ) {
908+ return Ok ( BTreeMap :: new ( ) ) ;
909+ }
907910
908911 let graph = Graph :: < MultiCompilerParsedSource > :: resolve ( paths) ?;
909912 let ( sources, _) = graph. into_sources ( ) ;
Original file line number Diff line number Diff line change @@ -280,16 +280,15 @@ impl TestArgs {
280280 config. invariant . gas_report_samples = 0 ;
281281 }
282282
283- // Set up the project.
284- let mut project = config. project ( ) ?;
285-
286283 // Install missing dependencies.
287284 if install:: install_missing_dependencies ( & mut config) && config. auto_detect_remappings {
288285 // need to re-configure here to also catch additional remappings
289286 config = self . load_config ( ) ;
290- project = config. project ( ) ?;
291287 }
292288
289+ // Set up the project.
290+ let project = config. project ( ) ?;
291+
293292 let mut filter = self . filter ( & config) ;
294293 trace ! ( target: "forge::test" , ?filter, "using filter" ) ;
295294
You can’t perform that action at this time.
0 commit comments