diff --git a/crates/compilers/src/compilers/multi.rs b/crates/compilers/src/compilers/multi.rs index d206076bd..f729d508d 100644 --- a/crates/compilers/src/compilers/multi.rs +++ b/crates/compilers/src/compilers/multi.rs @@ -66,6 +66,16 @@ pub enum MultiCompilerLanguage { Vyper(VyperLanguage), } +impl MultiCompilerLanguage { + pub fn is_vyper(&self) -> bool { + matches!(self, Self::Vyper(_)) + } + + pub fn is_solc(&self) -> bool { + matches!(self, Self::Solc(_)) + } +} + impl From for MultiCompilerLanguage { fn from(language: SolcLanguage) -> Self { Self::Solc(language)