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,