Skip to content

Commit

Permalink
use Project::update_output_selection
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Aug 28, 2024
1 parent 13da3b2 commit 40c8e58
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ proptest = "1"
comfy-table = "7"

[patch.crates-io]
foundry-compilers = { git = "https://github.com/foundry-rs/compilers", rev = "b9e5f7f" }
foundry-compilers = { git = "https://github.com/foundry-rs/compilers", rev = "9b13ed2" }
2 changes: 1 addition & 1 deletion crates/cast/bin/cmd/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ fn print_storage(layout: StorageLayout, values: Vec<StorageValue>, pretty: bool)

fn add_storage_layout_output<C: Compiler>(project: &mut Project<C>) {
project.artifacts.additional_values.storage_layout = true;
project.settings.update_output_selection(|selection| {
project.update_output_selection(|selection| {
selection.0.values_mut().for_each(|contract_selection| {
contract_selection
.values_mut()
Expand Down
2 changes: 1 addition & 1 deletion crates/forge/bin/cmd/bind_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl PreprocessedState {
fn compile(self) -> Result<CompiledState> {
let Self { sources, target_path, mut project, config } = self;

project.settings.update_output_selection(|selection| {
project.update_output_selection(|selection| {
*selection = OutputSelection::ast_output_selection();
});

Expand Down
2 changes: 1 addition & 1 deletion crates/forge/bin/cmd/eip712.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Eip712Args {
let config = self.try_load_config_emit_warnings()?;
let mut project = config.create_project(false, true)?;
let target_path = dunce::canonicalize(self.target_path)?;
project.settings.update_output_selection(|selection| {
project.update_output_selection(|selection| {
*selection = OutputSelection::ast_output_selection();
});

Expand Down
2 changes: 1 addition & 1 deletion crates/forge/bin/cmd/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl TestArgs {
filter: &ProjectPathsAwareFilter,
) -> Result<BTreeSet<PathBuf>> {
let mut project = config.create_project(true, true)?;
project.settings.update_output_selection(|selection| {
project.update_output_selection(|selection| {
*selection = OutputSelection::common_output_selection(["abi".to_string()]);
});

Expand Down
4 changes: 2 additions & 2 deletions crates/verify/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl VerificationContext {
/// Compiles target contract requesting only ABI and returns it.
pub fn get_target_abi(&self) -> Result<JsonAbi> {
let mut project = self.project.clone();
project.settings.update_output_selection(|selection| {
project.update_output_selection(|selection| {
*selection = OutputSelection::common_output_selection(["abi".to_string()])
});

Expand All @@ -64,7 +64,7 @@ impl VerificationContext {
/// Compiles target file requesting only metadata and returns it.
pub fn get_target_metadata(&self) -> Result<Metadata> {
let mut project = self.project.clone();
project.settings.update_output_selection(|selection| {
project.update_output_selection(|selection| {
*selection = OutputSelection::common_output_selection(["metadata".to_string()]);
});

Expand Down

0 comments on commit 40c8e58

Please sign in to comment.