Skip to content

Commit d9e9239

Browse files
authored
refactor(sol-macro-gen): remove unused artifacts_path from MultiSolMacroGen (#12578)
* refactor(sol-macro-gen): remove unused artifacts_path from MultiSolMacroGen * Update bind.rs
1 parent 13815d4 commit d9e9239

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/forge/src/cmd/bind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl BindArgs {
206206
})
207207
.collect::<Vec<_>>();
208208

209-
let multi = MultiSolMacroGen::new(artifacts, instances);
209+
let multi = MultiSolMacroGen::new(instances);
210210
eyre::ensure!(!multi.instances.is_empty(), "No contract artifacts found");
211211
Ok(multi)
212212
}

crates/sol-macro-gen/src/sol_macro_gen.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ impl SolMacroGen {
4949
}
5050

5151
pub struct MultiSolMacroGen {
52-
pub artifacts_path: PathBuf,
5352
pub instances: Vec<SolMacroGen>,
5453
}
5554

5655
impl MultiSolMacroGen {
57-
pub fn new(artifacts_path: &Path, instances: Vec<SolMacroGen>) -> Self {
58-
Self { artifacts_path: artifacts_path.to_path_buf(), instances }
56+
pub fn new(instances: Vec<SolMacroGen>) -> Self {
57+
Self { instances }
5958
}
6059

6160
pub fn populate_expansion(&mut self, bindings_path: &Path) -> Result<()> {

0 commit comments

Comments
 (0)