Skip to content

Commit

Permalink
fix: use ArtifactId.source instead of .path (#7271)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Feb 29, 2024
1 parent eab0390 commit 5c171f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/common/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl ContractSources {
let mut sources = ContractSources::default();
for (id, artifact) in output.artifact_ids() {
if let Some(file_id) = artifact.id {
let abs_path = root.join(&id.path);
let abs_path = root.join(&id.source);
let source_code = std::fs::read_to_string(abs_path).wrap_err_with(|| {
format!("failed to read artifact source file for `{}`", id.identifier())
})?;
Expand Down

0 comments on commit 5c171f7

Please sign in to comment.