From f3e7dfdcd482ec582d19953db1130612198b15cd Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Mon, 11 Dec 2023 09:44:47 -0600 Subject: [PATCH 1/2] chore: add set fn for compiler artifact --- src/compile/output/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/compile/output/mod.rs b/src/compile/output/mod.rs index c4dd9a63..c64ae97d 100644 --- a/src/compile/output/mod.rs +++ b/src/compile/output/mod.rs @@ -260,6 +260,15 @@ impl ProjectCompileOutput { &self.compiled_artifacts } + /// Sets the compiled artifacts for this output. + /// + /// # Arguments + /// + /// * `new_compiled_artifacts` - A collection of artifacts that will replace the current compiled artifacts. + 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` From 591484a4b627430a09e74e66c7c3c242387cebbc Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Mon, 11 Dec 2023 18:20:58 -0600 Subject: [PATCH 2/2] chore: cargo fmt --- src/compile/output/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compile/output/mod.rs b/src/compile/output/mod.rs index c64ae97d..973c41a7 100644 --- a/src/compile/output/mod.rs +++ b/src/compile/output/mod.rs @@ -261,10 +261,6 @@ impl ProjectCompileOutput { } /// Sets the compiled artifacts for this output. - /// - /// # Arguments - /// - /// * `new_compiled_artifacts` - A collection of artifacts that will replace the current compiled artifacts. pub fn set_compiled_artifacts(&mut self, new_compiled_artifacts: Artifacts) { self.compiled_artifacts = new_compiled_artifacts; }