diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index d17f15e270..b27a2d9aa8 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -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(), @@ -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", + 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() ); } }