From a30d4f9b9e8572647e62dbbc2e42fced1b15b0ec Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Thu, 4 Sep 2025 14:40:09 +0300 Subject: [PATCH] Fix tests --- crates/compiler/src/solc.rs | 5 +++-- crates/config/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/compiler/src/solc.rs b/crates/compiler/src/solc.rs index 1c98ecb..dae007e 100644 --- a/crates/compiler/src/solc.rs +++ b/crates/compiler/src/solc.rs @@ -46,7 +46,8 @@ impl SolidityCompiler for Solc { // This is a cache for the compiler objects so that whenever the same compiler version is // requested the same object is returned. We do this as we do not want to keep cloning the // compiler around. - static COMPILERS_CACHE: LazyLock> = LazyLock::new(Default::default); + static COMPILERS_CACHE: LazyLock> = + LazyLock::new(Default::default); let working_directory_configuration = AsRef::::as_ref(&context); @@ -65,7 +66,7 @@ impl SolidityCompiler for Solc { .context("Failed to download/get path to solc binary")?; Ok(COMPILERS_CACHE - .entry(version.clone()) + .entry((path.clone(), version.clone())) .or_insert_with(|| { Self(Arc::new(SolcInner { solc_path: path, diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index 2490078..d231aad 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -256,7 +256,7 @@ pub struct KitchensinkConfiguration { #[clap( id = "kitchensink.path", long = "kitchensink.path", - default_value = "kitchensink" + default_value = "substrate-node" )] pub path: PathBuf,