Commit 048a7e8 1 parent f824e29 commit 048a7e8 Copy full SHA for 048a7e8
File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -904,6 +904,9 @@ impl Config {
904
904
) -> Result < BTreeMap < PathBuf , RestrictionsWithVersion < MultiCompilerRestrictions > > , SolcError >
905
905
{
906
906
let mut map = BTreeMap :: new ( ) ;
907
+ if self . compilation_restrictions . is_empty ( ) {
908
+ return Ok ( BTreeMap :: new ( ) ) ;
909
+ }
907
910
908
911
let graph = Graph :: < MultiCompilerParsedSource > :: resolve ( paths) ?;
909
912
let ( sources, _) = graph. into_sources ( ) ;
Original file line number Diff line number Diff line change @@ -280,16 +280,15 @@ impl TestArgs {
280
280
config. invariant . gas_report_samples = 0 ;
281
281
}
282
282
283
- // Set up the project.
284
- let mut project = config. project ( ) ?;
285
-
286
283
// Install missing dependencies.
287
284
if install:: install_missing_dependencies ( & mut config) && config. auto_detect_remappings {
288
285
// need to re-configure here to also catch additional remappings
289
286
config = self . load_config ( ) ;
290
- project = config. project ( ) ?;
291
287
}
292
288
289
+ // Set up the project.
290
+ let project = config. project ( ) ?;
291
+
293
292
let mut filter = self . filter ( & config) ;
294
293
trace ! ( target: "forge::test" , ?filter, "using filter" ) ;
295
294
You can’t perform that action at this time.
0 commit comments