Skip to content

Commit

Permalink
better error handling and branch for boojum cli
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed May 16, 2024
1 parent 32a5737 commit 3519d22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
zksync_crypto = { git = "https://github.com/matter-labs/era-boojum-validator-cli", rev = "688798dc9b11e2c76c7e05b93f1ec7ff9d176a88", package = "crypto" }
zksync_crypto = { git = "https://github.com/matter-labs/era-boojum-validator-cli", branch = "main", package = "crypto" }
circuit_definitions = {git = "https://github.com/matter-labs/era-zkevm_test_harness.git", branch="v1.5.0"}

serde_derive = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion tools/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ fn main() -> Result<(), Box<dyn Error>> {

let verifier_contract_template = fs::read_to_string("data/verifier_contract_template.txt")?;

let verification_key = fs::read_to_string(opt.input_path).unwrap();
let verification_key = fs::read_to_string(&opt.input_path)
.expect(&format!("Unable to read from {}", &opt.input_path));

let verification_key: VerificationKey<Bn256, ZkSyncSnarkWrapperCircuit> =
serde_json::from_str(&verification_key).unwrap();
Expand Down

0 comments on commit 3519d22

Please sign in to comment.