Skip to content
Merged
Changes from 3 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
13 changes: 10 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,16 @@ async fn main() -> Result<(), AlignedError> {
}

for batch_merkle_root in unique_batch_merkle_roots {
let base_url = match submit_args.network.clone().into() {
// Note: in case the explorer address changes for other networks, we should add an arm to this
// match with that network since the default URL used here is the mainnet one
Network::Holesky => "https://holesky.explorer.alignedlayer.com/batches/0x",
Copy link
Copy Markdown
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
Copy Markdown
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

_ => "https://explorer.alignedlayer.com/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