-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Add a "--scheduler-key" flag to override scheduler key to use #35
Conversation
src/main.rs
Outdated
@@ -59,6 +60,8 @@ struct Cli { | |||
/// Flag to print output as json | |||
#[arg(long)] | |||
json: bool, | |||
#[arg(long, default_value="")] | |||
scheduler_key: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can make this an Option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Updated
src/utils.rs
Outdated
@@ -3,12 +3,17 @@ use std::env; | |||
/// Checks to see if the verification key exists for a given protocol version or an update has been requested and downloads it from github if needed. | |||
pub async fn check_verification_key(protocol_version: String) { | |||
let file_path = format!("src/keys/protocol_version/{}/scheduler_key.json", protocol_version); | |||
// 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo - "nout" vs "not"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Updated, thanks!
7822d21
to
ceff956
Compare
Description
example usage:
assuming old is the key for protocol version 18 and new is version 19. The first call will work and the second call will return an
assertion `left == right` failed
error