Skip to content

Commit

Permalink
feat: removing unused arg and adding information about latest key
Browse files Browse the repository at this point in the history
  • Loading branch information
githubdoramon committed Feb 9, 2024
1 parent 70312ea commit fe1c588
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ struct Cli {
#[arg(long)]
/// RPC endpoint to use to fetch L1 information
l1_rpc: Option<String>,
/// Bool to request updating verification key
#[arg(long)]
update_verification_key: Option<bool>,
/// Flag to print output as json
#[arg(long)]
json: bool,
Expand Down
1 change: 1 addition & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fe1c588

Please sign in to comment.