From 9e4f2e95f1058dd269096848058eedd68892aa94 Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Wed, 17 Sep 2025 19:31:12 +0300 Subject: [PATCH] Support the dyn compiler in the builder pattern --- crates/compiler/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/compiler/src/lib.rs b/crates/compiler/src/lib.rs index 2266435..8997278 100644 --- a/crates/compiler/src/lib.rs +++ b/crates/compiler/src/lib.rs @@ -192,6 +192,10 @@ impl Compiler { compiler.build(self.input).await } + pub async fn dyn_try_build(self, compiler: &dyn DynSolidityCompiler) -> Result { + compiler.build(self.input).await + } + pub fn input(&self) -> &CompilerInput { &self.input }