diff --git a/crates/zksync/compiler/src/zksolc/mod.rs b/crates/zksync/compiler/src/zksolc/mod.rs index ffe7349ed..50eee0f2f 100644 --- a/crates/zksync/compiler/src/zksolc/mod.rs +++ b/crates/zksync/compiler/src/zksolc/mod.rs @@ -304,4 +304,9 @@ impl DualCompiledContracts { pub fn len(&self) -> usize { self.contracts.len() } + + /// Retrieves if the collection is empty. + pub fn is_empty(&self) -> bool { + self.contracts.is_empty() + } }