Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Aug 15, 2024
1 parent 1fed756 commit 0eb4582
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sequencer/src/bin/dev-rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ enum Command {
Update(Update),
}

// Options for registering a rollup
#[derive(Parser, Debug)]
struct Register {
#[clap(short, long, env = "ESPRESSO_MARKETPLACE_SOLVER_API_URL")]
Expand All @@ -54,6 +55,8 @@ struct Register {
#[clap(long, default_value = "test")]
pub text: String,

/// Private key can be provided in tagged-base64 format
/// Othwerwise, a default private key with seed = [0;32] and index 9876 is used

Check warning on line 59 in sequencer/src/bin/dev-rollup.rs

View workflow job for this annotation

GitHub Actions / typos

"Othwerwise" should be "Otherwise".
#[clap(long = "privkey")]
pub private_key: Option<String>,
}
Expand All @@ -78,6 +81,8 @@ struct Update {
#[clap(long, default_value = "test")]
pub text: Option<String>,

/// Private key can be provided in tagged-base64 format
/// Othwerwise, a default private key with seed = [0;32] and index 9876 is used

Check warning on line 85 in sequencer/src/bin/dev-rollup.rs

View workflow job for this annotation

GitHub Actions / typos

"Othwerwise" should be "Otherwise".
#[clap(long = "privkey")]
pub private_key: Option<String>,
}
Expand Down Expand Up @@ -186,7 +191,7 @@ async fn update(opt: Update) -> Result<()> {
text,
};

// Sign the registration body
// Sign the rollup update body
let signature = <SeqTypes as NodeType>::SignatureKey::sign(&privkey, body.commit().as_ref())
.expect("failed to sign");

Expand All @@ -195,7 +200,7 @@ async fn update(opt: Update) -> Result<()> {
signature,
};

// registering a rollup
// update a rollup
client
.post::<RollupRegistration>("register_rollup")
.body_json(&update)
Expand Down

0 comments on commit 0eb4582

Please sign in to comment.