Skip to content

Commit

Permalink
chore: adds latest zksolc compiler (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter authored Oct 30, 2023
1 parent 8b442c4 commit f08160b
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit f08160b

Please sign in to comment.