Skip to content

Commit c5baa2f

Browse files
Handle different urls for different networks
1 parent c70c25d commit c5baa2f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/cli/src/main.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,14 @@ async fn main() -> Result<(), AlignedError> {
622622
}
623623

624624
for batch_merkle_root in unique_batch_merkle_roots {
625+
let base_url = match submit_args.network.clone().into() {
626+
Network::Holesky => "https://holesky.explorer.alignedlayer.com/batches/0x",
627+
_ => "https://explorer.alignedlayer.com/batches/0x",
628+
};
629+
625630
info!(
626-
"https://explorer.alignedlayer.com/batches/0x{}",
627-
hex::encode(batch_merkle_root)
631+
"{}",
632+
base_url.to_string() + hex::encode(batch_merkle_root).as_str()
628633
);
629634
}
630635
}

0 commit comments

Comments
 (0)