From 4f61383eac6c01894b1443b10df4afe391e62963 Mon Sep 17 00:00:00 2001 From: Anton Levochko <57064990+OmegaTymbJIep@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:46:17 +0200 Subject: [PATCH] fix: bump svm version to `v0.3.5` (#275) --- Cargo.lock | 4 ++-- crates/common/src/zk_compile.rs | 5 +++-- crates/forge/Cargo.toml | 2 +- crates/zkforge/Cargo.toml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 74ad331bb..d60124d55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10701,9 +10701,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "svm-rs" -version = "0.3.0" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597e3a746727984cb7ea2487b6a40726cad0dbe86628e7d429aa6b8c4c153db4" +checksum = "11297baafe5fa0c99d5722458eac6a5e25c01eb1b8e5cd137f54079093daa7a4" dependencies = [ "dirs 5.0.1", "fs2", diff --git a/crates/common/src/zk_compile.rs b/crates/common/src/zk_compile.rs index 8f14d1e6f..deee8a728 100644 --- a/crates/common/src/zk_compile.rs +++ b/crates/common/src/zk_compile.rs @@ -193,7 +193,7 @@ pub fn compile_smart_contracts( Ok(output) } Err(err) => { - eyre::bail!("Failed to compile smart contracts with zksolc: {}", err); + eyre::bail!("Failed to compile smart contracts with zksolc: {:#}", err); } } } @@ -1053,7 +1053,8 @@ impl ZkSolc { /// The versioned sources can then be used for further processing or analysis. fn get_versioned_sources(&mut self) -> Result> { // Step 1: Retrieve Project Sources - let sources = self.project.paths.read_input_files()?; + let sources = + self.project.paths.read_input_files().wrap_err("Could not read input files")?; // Step 2: Resolve Graph of Sources and Versions let graph = Graph::resolve_sources(&self.project.paths, sources) diff --git a/crates/forge/Cargo.toml b/crates/forge/Cargo.toml index f09ffa216..bc75e262d 100644 --- a/crates/forge/Cargo.toml +++ b/crates/forge/Cargo.toml @@ -88,7 +88,7 @@ paste = "1.0" path-slash = "0.2" pretty_assertions.workspace = true serial_test = "2" -svm = { package = "svm-rs", version = "0.3", default-features = false, features = ["rustls"] } +svm = { package = "svm-rs", version = "0.3.5", default-features = false, features = ["rustls"] } tempfile = "3" tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] } diff --git a/crates/zkforge/Cargo.toml b/crates/zkforge/Cargo.toml index 3e3b331bc..f90a9d6be 100644 --- a/crates/zkforge/Cargo.toml +++ b/crates/zkforge/Cargo.toml @@ -96,7 +96,7 @@ paste = "1.0" path-slash = "0.2" pretty_assertions.workspace = true serial_test = "2" -svm = { package = "svm-rs", version = "0.3", default-features = false, features = ["rustls"] } +svm = { package = "svm-rs", version = "0.3.5", default-features = false, features = ["rustls"] } tempfile = "3" tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }