diff --git a/crates/forge/src/cmd/bind.rs b/crates/forge/src/cmd/bind.rs index acf69b158ae07..9ef8edc88f5d7 100644 --- a/crates/forge/src/cmd/bind.rs +++ b/crates/forge/src/cmd/bind.rs @@ -206,7 +206,7 @@ impl BindArgs { }) .collect::>(); - let multi = MultiSolMacroGen::new(artifacts, instances); + let multi = MultiSolMacroGen::new(instances); eyre::ensure!(!multi.instances.is_empty(), "No contract artifacts found"); Ok(multi) } diff --git a/crates/sol-macro-gen/src/sol_macro_gen.rs b/crates/sol-macro-gen/src/sol_macro_gen.rs index cca7d16c47a15..088f8f921fde8 100644 --- a/crates/sol-macro-gen/src/sol_macro_gen.rs +++ b/crates/sol-macro-gen/src/sol_macro_gen.rs @@ -49,13 +49,12 @@ impl SolMacroGen { } pub struct MultiSolMacroGen { - pub artifacts_path: PathBuf, pub instances: Vec, } impl MultiSolMacroGen { - pub fn new(artifacts_path: &Path, instances: Vec) -> Self { - Self { artifacts_path: artifacts_path.to_path_buf(), instances } + pub fn new(instances: Vec) -> Self { + Self { instances } } pub fn populate_expansion(&mut self, bindings_path: &Path) -> Result<()> {