Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Commit 14f6c9c

Browse files
committed
chore: update svm
1 parent a57ee5c commit 14f6c9c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/compile/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl Solc {
355355
let _lock = take_solc_installer_lock();
356356

357357
// load the local / remote versions
358-
let versions = utils::installed_versions(svm::SVM_DATA_DIR.as_path()).unwrap_or_default();
358+
let versions = utils::installed_versions(svm::data_dir()).unwrap_or_default();
359359

360360
let local_versions = Self::find_matching_installation(&versions, sol_version);
361361
let remote_versions = Self::find_matching_installation(&RELEASES.1, sol_version);
@@ -420,7 +420,7 @@ impl Solc {
420420
/// # }
421421
/// ```
422422
#[cfg(feature = "svm-solc")]
423-
pub async fn install(version: &Version) -> std::result::Result<Self, svm::SolcVmError> {
423+
pub async fn install(version: &Version) -> std::result::Result<Self, svm::SvmError> {
424424
trace!("installing solc version \"{}\"", version);
425425
crate::report::solc_installation_start(version);
426426
match svm::install(version).await {
@@ -437,7 +437,7 @@ impl Solc {
437437

438438
/// Blocking version of `Self::install`
439439
#[cfg(feature = "svm-solc")]
440-
pub fn blocking_install(version: &Version) -> std::result::Result<Self, svm::SolcVmError> {
440+
pub fn blocking_install(version: &Version) -> std::result::Result<Self, svm::SvmError> {
441441
use crate::utils::RuntimeOrHandle;
442442

443443
trace!("blocking installing solc version \"{}\"", version);
@@ -892,14 +892,14 @@ mod tests {
892892
let _lock = take_solc_installer_lock();
893893
let ver = "0.8.6";
894894
let version = Version::from_str(ver).unwrap();
895-
if utils::installed_versions(svm::SVM_DATA_DIR.as_path())
895+
if utils::installed_versions(svm::data_dir())
896896
.map(|versions| !versions.contains(&version))
897897
.unwrap_or_default()
898898
{
899899
Solc::blocking_install(&version).unwrap();
900900
}
901901
let res = Solc::find_svm_installed_version(version.to_string()).unwrap().unwrap();
902-
let expected = svm::SVM_DATA_DIR.join(ver).join(format!("solc-{ver}"));
902+
let expected = svm::data_dir().join(ver).join(format!("solc-{ver}"));
903903
assert_eq!(res.solc, expected);
904904
}
905905

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub enum SolcError {
5858
FailedResolveImport(Box<SolcError>, PathBuf, PathBuf),
5959
#[cfg(feature = "svm-solc")]
6060
#[error(transparent)]
61-
SvmError(#[from] svm::SolcVmError),
61+
SvmError(#[from] svm::SvmError),
6262
#[error("no contracts found at \"{0}\"")]
6363
NoContracts(String),
6464
/// General purpose message.

0 commit comments

Comments
 (0)