Skip to content

Commit

Permalink
also allow vyper interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Oct 14, 2024
1 parent 877ab1c commit 71c6ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compilers/src/project_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub(crate) fn create_contract_file(path: &Path, content: impl AsRef<str>) -> Res

fn contract_file_name(name: &str) -> String {
let name = name.trim();
if name.ends_with(".sol") || name.ends_with(".vy") {
if name.ends_with(".sol") || name.ends_with(".vy") || name.ends_with(".vyi") {
name.to_string()
} else {
format!("{name}.sol")
Expand Down

0 comments on commit 71c6ec7

Please sign in to comment.