From b1561d807c246c066c7c4b0c72c8eb64c696a43d Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Mon, 11 Dec 2023 23:44:14 -0600 Subject: [PATCH] chore: add `set_compiled_artifacts` to ProjectCompileOutput impl (#33) --- src/compile/output/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) 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`