Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Apr 14, 2024
1 parent 6db9a8d commit df83444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/forge/bin/cmd/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use foundry_common::{
fmt::parse_tokens,
provider::alloy::estimate_eip1559_fees,
};
use foundry_compilers::{artifacts::BytecodeObject, info::ContractInfo};
use foundry_compilers::{artifacts::BytecodeObject, info::ContractInfo, utils::canonicalize};
use serde_json::json;
use std::{borrow::Borrow, marker::PhantomData, path::PathBuf, sync::Arc};

Expand Down Expand Up @@ -88,7 +88,7 @@ impl CreateArgs {
let project = self.opts.project()?;

let target_path = if let Some(ref mut path) = self.contract.path {
dunce::canonicalize(path)?
canonicalize(project.root().join(&path))?
} else {
find_contract_path(&self.contract.name, &project)?
};
Expand Down

0 comments on commit df83444

Please sign in to comment.