From 566f4c1f34d9d049b172a28747926b6099b1544f Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Mon, 13 Sep 2021 23:58:10 +0300 Subject: [PATCH] fix: remove solc path canonicalization --- ethers-core/src/utils/solc.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/ethers-core/src/utils/solc.rs b/ethers-core/src/utils/solc.rs index 90acf224..4c06761e 100644 --- a/ethers-core/src/utils/solc.rs +++ b/ethers-core/src/utils/solc.rs @@ -103,8 +103,6 @@ impl Solc { /// Gets the ABI for the contracts pub fn build_raw(self) -> Result> { let path = self.solc_path.unwrap_or_else(|| PathBuf::from(SOLC)); - let path = std::fs::canonicalize(&path) - .unwrap_or_else(|_| panic!("cannot canonicalize path {:?}", path)); let mut command = Command::new(&path); let version = Solc::version(Some(path)); @@ -233,7 +231,6 @@ impl Solc { /// If `solc` is not found pub fn version(solc_path: Option) -> String { let solc_path = solc_path.unwrap_or_else(|| PathBuf::from(SOLC)); - let solc_path = std::fs::canonicalize(solc_path).unwrap(); let command_output = Command::new(&solc_path) .arg("--version") .output()