diff --git a/ethers-solc/src/utils.rs b/ethers-solc/src/utils.rs index a5bd3e11..eedea95f 100644 --- a/ethers-solc/src/utils.rs +++ b/ethers-solc/src/utils.rs @@ -75,6 +75,8 @@ pub fn find_version_pragma(contract: &str) -> Option { /// Returns a list of absolute paths to all the solidity files under the root, or the file itself, /// if the path is a solidity file. /// +/// This also follows symlinks. +/// /// NOTE: this does not resolve imports from other locations /// /// # Example @@ -85,6 +87,7 @@ pub fn find_version_pragma(contract: &str) -> Option { /// ``` pub fn source_files(root: impl AsRef) -> Vec { WalkDir::new(root) + .follow_links(true) .into_iter() .filter_map(Result::ok) .filter(|e| e.file_type().is_file())