diff --git a/crates/compilers/src/lib.rs b/crates/compilers/src/lib.rs index 40eaee9c..26f1c085 100644 --- a/crates/compilers/src/lib.rs +++ b/crates/compilers/src/lib.rs @@ -382,7 +382,7 @@ impl Project { let graph = Graph::::resolve(&self.paths)?; let mut contracts: HashMap> = HashMap::new(); if !graph.is_empty() { - for node in graph.nodes(0) { + for node in &graph.nodes { for contract_name in node.data.contract_names() { contracts .entry(contract_name.clone()) diff --git a/crates/compilers/src/resolver/mod.rs b/crates/compilers/src/resolver/mod.rs index f515402a..5e892edc 100644 --- a/crates/compilers/src/resolver/mod.rs +++ b/crates/compilers/src/resolver/mod.rs @@ -205,7 +205,7 @@ impl GraphEdges { #[derive(Debug)] pub struct Graph { /// all nodes in the project, a `Node` represents a single file - nodes: Vec>, + pub nodes: Vec>, /// relationship of the nodes edges: GraphEdges, /// the root of the project this graph represents