Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit b1561d8

Browse files
authored
chore: add set_compiled_artifacts to ProjectCompileOutput impl (#33)
1 parent 9fa4145 commit b1561d8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/compile/output/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ impl<T: ArtifactOutput> ProjectCompileOutput<T> {
260260
&self.compiled_artifacts
261261
}
262262

263+
/// Sets the compiled artifacts for this output.
264+
pub fn set_compiled_artifacts(&mut self, new_compiled_artifacts: Artifacts<T::Artifact>) {
265+
self.compiled_artifacts = new_compiled_artifacts;
266+
}
267+
263268
/// Returns a `BTreeMap` that maps the compiler version used during
264269
/// [`crate::Project::compile()`] to a Vector of tuples containing the contract name and the
265270
/// `Contract`

0 commit comments

Comments
 (0)