Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adds latest zksolc compiler #135

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions crates/zkforge/bin/cmd/zksolc_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ pub enum ZkSolcVersion {
V1311,
V1313,
V1314,
V1315,
V1316,
}

pub const DEFAULT_ZKSOLC_VERSION: &str = "v1.3.15";
pub const DEFAULT_ZKSOLC_VERSION: &str = "v1.3.16";

/// `parse_version` parses a string representation of a `zksolc` compiler version
/// and returns the `ZkSolcVersion` enum variant if it matches a supported version.
Expand All @@ -86,7 +86,7 @@ fn parse_version(version: &str) -> Result<ZkSolcVersion> {
"v1.3.11" => Ok(ZkSolcVersion::V1311),
"v1.3.13" => Ok(ZkSolcVersion::V1313),
"v1.3.14" => Ok(ZkSolcVersion::V1314),
"v1.3.15" => Ok(ZkSolcVersion::V1315),
"v1.3.16" => Ok(ZkSolcVersion::V1316),
_ => Err(Error::msg(
"ZkSolc compiler version not supported. Proper version format: 'v1.3.x'",
)),
Expand All @@ -110,7 +110,7 @@ impl ZkSolcVersion {
ZkSolcVersion::V1311 => "v1.3.11",
ZkSolcVersion::V1313 => "v1.3.13",
ZkSolcVersion::V1314 => "v1.3.14",
ZkSolcVersion::V1315 => "v1.3.15",
ZkSolcVersion::V1316 => "v1.3.16",
}
}
}
Expand Down Expand Up @@ -217,7 +217,7 @@ impl ZkSolcManagerOpts {
///
/// ```ignore
/// use zkforge::zksolc_manager::{ZkSolcManagerBuilder, ZkSolcManagerOpts};
/// let opts = ZkSolcManagerOpts::new("v1.3.15")
/// let opts = ZkSolcManagerOpts::new("v1.3.16")
/// let zk_solc_manager = ZkSolcManagerBuilder::new(opts)
/// .build()
/// .expect("Failed to build ZkSolcManager");
Expand Down