Skip to content

Commit 40c8e58

Browse files
committed
use Project::update_output_selection
1 parent 13da3b2 commit 40c8e58

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,4 @@ proptest = "1"
266266
comfy-table = "7"
267267

268268
[patch.crates-io]
269-
foundry-compilers = { git = "https://github.com/foundry-rs/compilers", rev = "b9e5f7f" }
269+
foundry-compilers = { git = "https://github.com/foundry-rs/compilers", rev = "9b13ed2" }

crates/cast/bin/cmd/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ fn print_storage(layout: StorageLayout, values: Vec<StorageValue>, pretty: bool)
288288

289289
fn add_storage_layout_output<C: Compiler>(project: &mut Project<C>) {
290290
project.artifacts.additional_values.storage_layout = true;
291-
project.settings.update_output_selection(|selection| {
291+
project.update_output_selection(|selection| {
292292
selection.0.values_mut().for_each(|contract_selection| {
293293
contract_selection
294294
.values_mut()

crates/forge/bin/cmd/bind_json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl PreprocessedState {
229229
fn compile(self) -> Result<CompiledState> {
230230
let Self { sources, target_path, mut project, config } = self;
231231

232-
project.settings.update_output_selection(|selection| {
232+
project.update_output_selection(|selection| {
233233
*selection = OutputSelection::ast_output_selection();
234234
});
235235

crates/forge/bin/cmd/eip712.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl Eip712Args {
3131
let config = self.try_load_config_emit_warnings()?;
3232
let mut project = config.create_project(false, true)?;
3333
let target_path = dunce::canonicalize(self.target_path)?;
34-
project.settings.update_output_selection(|selection| {
34+
project.update_output_selection(|selection| {
3535
*selection = OutputSelection::ast_output_selection();
3636
});
3737

crates/forge/bin/cmd/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl TestArgs {
181181
filter: &ProjectPathsAwareFilter,
182182
) -> Result<BTreeSet<PathBuf>> {
183183
let mut project = config.create_project(true, true)?;
184-
project.settings.update_output_selection(|selection| {
184+
project.update_output_selection(|selection| {
185185
*selection = OutputSelection::common_output_selection(["abi".to_string()]);
186186
});
187187

crates/verify/src/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl VerificationContext {
4545
/// Compiles target contract requesting only ABI and returns it.
4646
pub fn get_target_abi(&self) -> Result<JsonAbi> {
4747
let mut project = self.project.clone();
48-
project.settings.update_output_selection(|selection| {
48+
project.update_output_selection(|selection| {
4949
*selection = OutputSelection::common_output_selection(["abi".to_string()])
5050
});
5151

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

0 commit comments

Comments
 (0)