Skip to content

Commit

Permalink
chore: add set_compiled_artifacts to ProjectCompileOutput impl (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter authored Dec 12, 2023
1 parent 9fa4145 commit b1561d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/compile/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ impl<T: ArtifactOutput> ProjectCompileOutput<T> {
&self.compiled_artifacts
}

/// Sets the compiled artifacts for this output.
pub fn set_compiled_artifacts(&mut self, new_compiled_artifacts: Artifacts<T::Artifact>) {
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`
Expand Down

0 comments on commit b1561d8

Please sign in to comment.