Skip to content

Commit

Permalink
fix: ignore build info in forge bind (#7444)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Mar 19, 2024
1 parent 0026488 commit af8685f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/forge/bin/cmd/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl BindArgs {
"console[2]?",
"CommonBase",
"Components",
"[Ss]td(Chains|Math|Error|Json|Utils|Cheats|Style|Invariant|Assertions|Storage(Safe)?)",
"[Ss]td(Chains|Math|Error|Json|Utils|Cheats|Style|Invariant|Assertions|Toml|Storage(Safe)?)",
"[Vv]m.*",
])
.extend_names(["IMulticall3"])
Expand All @@ -155,6 +155,10 @@ impl BindArgs {
let abigens = json_files(artifacts.as_ref())
.into_iter()
.filter_map(|path| {
if path.to_string_lossy().contains("/build-info/") {
// ignore the build info json
return None
}
// we don't want `.metadata.json files
let stem = path.file_stem()?;
if stem.to_str()?.ends_with(".metadata") {
Expand Down

0 comments on commit af8685f

Please sign in to comment.