Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ async fn main() -> Result<(), AlignedError> {
info!("Submitting proofs to the Aligned batcher...");

let aligned_verification_data_vec = submit_multiple(
submit_args.network.into(),
submit_args.network.clone().into(),
&verification_data_arr,
max_fee_wei,
wallet.clone(),
Expand Down Expand Up @@ -622,9 +622,20 @@ async fn main() -> Result<(), AlignedError> {
}

for batch_merkle_root in unique_batch_merkle_roots {
let base_url = match submit_args.network.clone().into() {
Network::Holesky => "https://holesky.explorer.alignedlayer.com/batches/0x",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is missing to add the other networks

  • Stage
  • Mainnet
  • MainnetStage
  • Devnet

Generally we use devnet as default

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in c5b2f65

Network::HoleskyStage => "https://stage.explorer.alignedlayer.com/batches/0x",
Network::Mainnet => "https://explorer.alignedlayer.com/batches/0x",
Network::MainnetStage => {
"https://mainnetstage.explorer.alignedlayer.com/batches/0x"
}
Network::Devnet => "http://localhost:4000/batches/0x",
_ => "http://localhost:4000/batches/0x",
};

info!(
"https://explorer.alignedlayer.com/batches/0x{}",
hex::encode(batch_merkle_root)
"{}",
base_url.to_string() + hex::encode(batch_merkle_root).as_str()
);
}
}
Expand Down
Loading