Skip to content

Commit

Permalink
feat: compilation restrictions (#8668)
Browse files Browse the repository at this point in the history
* [wip] feat: compilation restrictions

* Cargo.lock

* update patch

* fixes

* update patch

* update patch

* wip

* deps

* bytecode hash

* fixes

* rm patches

* pub
  • Loading branch information
klkvr authored Nov 18, 2024
1 parent 6625e16 commit 547d8a5
Show file tree
Hide file tree
Showing 17 changed files with 500 additions and 90 deletions.
194 changes: 170 additions & 24 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ foundry-wallets = { path = "crates/wallets" }
foundry-linking = { path = "crates/linking" }

# solc & compilation utilities
foundry-block-explorers = { version = "0.7.3", default-features = false }
foundry-compilers = { version = "0.11.6", default-features = false }
foundry-block-explorers = { version = "0.9.0", default-features = false }
foundry-compilers = { version = "0.12.1", default-features = false }
foundry-fork-db = "0.6.0"
solang-parser = "=0.3.3"

Expand Down
4 changes: 2 additions & 2 deletions crates/cast/bin/cmd/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use foundry_compilers::{
artifacts::{ConfigurableContractArtifact, StorageLayout},
compilers::{
solc::{Solc, SolcCompiler},
Compiler, CompilerSettings,
Compiler,
},
Artifact, Project,
};
Expand Down Expand Up @@ -316,7 +316,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
Loading

0 comments on commit 547d8a5

Please sign in to comment.