From fe1c588c6e68983c6d518e51b693eb5aaaab5243 Mon Sep 17 00:00:00 2001 From: "Ramon \"9Tails\" Canales" Date: Fri, 9 Feb 2024 09:26:32 +0000 Subject: [PATCH] feat: removing unused arg and adding information about latest key --- README.md | 1 - src/main.rs | 3 --- src/utils.rs | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 6f953b8..d744568 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,6 @@ cargo run -- --batch 109939 --network mainnet --l1-rpc https://rpc.ankr.com/eth --batch - The L1 batch number you want to verify the generated proof --network - Along with batch number, defines if you want to verify a proof for Era testnet or mainnet. It defaults to mainnet. Accepts "mainnet" or "testnet" --l1-rpc - The RPC url required to pull data from L1. ---update-verification-key - Specifes if the verification key should be updated from [github](https://github.com/matter-labs/era-contracts/blob/main/tools/data/scheduler_key.json). --json - Flag to specify if the output should be in json. Note that all the usual std out prints are silenced. ``` diff --git a/src/main.rs b/src/main.rs index 8135715..5cac6ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,9 +56,6 @@ struct Cli { #[arg(long)] /// RPC endpoint to use to fetch L1 information l1_rpc: Option, - /// Bool to request updating verification key - #[arg(long)] - update_verification_key: Option, /// Flag to print output as json #[arg(long)] json: bool, diff --git a/src/utils.rs b/src/utils.rs index aad2e22..fe9751a 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -7,6 +7,7 @@ pub async fn check_verification_key(protocol_version: String) { let file_exists = file.exists(); if !file_exists { + // If the key for the latest protocol version is nout available in this repo yet, you can always find it at https://github.com/matter-labs/era-contracts/blob/main/tools/data/scheduler_key.json eprintln!("Verification key for protocol version {} is missing. Please add it to the keys folder.", protocol_version); std::process::exit(1) }