diff --git a/src/compile/output/mod.rs b/src/compile/output/mod.rs index c4dd9a63..973c41a7 100644 --- a/src/compile/output/mod.rs +++ b/src/compile/output/mod.rs @@ -260,6 +260,11 @@ impl ProjectCompileOutput { &self.compiled_artifacts } + /// Sets the compiled artifacts for this output. + pub fn set_compiled_artifacts(&mut self, new_compiled_artifacts: Artifacts) { + self.compiled_artifacts = new_compiled_artifacts; + } + /// Returns a `BTreeMap` that maps the compiler version used during /// [`crate::Project::compile()`] to a Vector of tuples containing the contract name and the /// `Contract`