From ebeab396ebf880c05b58ebde3d3979e43e0a833b Mon Sep 17 00:00:00 2001 From: Fibonacci747 Date: Sun, 16 Nov 2025 08:04:17 +0100 Subject: [PATCH 1/2] refactor(sol-macro-gen): remove unused artifacts_path from MultiSolMacroGen --- crates/sol-macro-gen/src/sol_macro_gen.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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<()> { From 9e8206c8c66584b4473930cd2de4a03c1a09ea7d Mon Sep 17 00:00:00 2001 From: Fibonacci747 Date: Sun, 16 Nov 2025 08:05:00 +0100 Subject: [PATCH 2/2] Update bind.rs --- crates/forge/src/cmd/bind.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }