Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion crates/compilers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ impl<T: ArtifactOutput, C: Compiler> Project<C, T> {
let graph = Graph::<C::ParsedSource>::resolve(&self.paths)?;
let mut contracts: HashMap<String, Vec<PathBuf>> = 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())
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/src/resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl<D> GraphEdges<D> {
#[derive(Debug)]
pub struct Graph<D = SolData> {
/// all nodes in the project, a `Node` represents a single file
nodes: Vec<Node<D>>,
pub nodes: Vec<Node<D>>,
/// relationship of the nodes
edges: GraphEdges<D>,
/// the root of the project this graph represents
Expand Down