Function cast::utils::find_contracts_dir[][src]

pub fn find_contracts_dir(root: impl AsRef<Path>) -> PathBuf
Expand description

Determines the source directory to use given the root path to a project’s workspace.

By default the dapptools style src directory takes precedence unless it does not exist but hardhat style contracts exists, in which case <root>/contracts will be returned.