Skip to content

Commit 4650034

Browse files
feat: add explorer batch url (#336)
1 parent 533e62a commit 4650034

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

batcher/client/src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{path::PathBuf, sync::Arc, time::Duration};
22

3-
use alloy_primitives::Address;
3+
use alloy_primitives::{Address, hex};
44
use env_logger::Env;
55
use futures_util::{
66
future,
@@ -149,6 +149,12 @@ async fn receive(
149149
let deserialized_data: BatchInclusionData = serde_json::from_slice(&data).unwrap();
150150
info!("Batcher response received: {}", deserialized_data);
151151

152+
let batch_merkle_root_hex = hex::encode(deserialized_data.batch_merkle_root);
153+
info!(
154+
"See the batch in the explorer:\nhttps://explorer.alignedlayer.com/batches/0x{}",
155+
batch_merkle_root_hex
156+
);
157+
152158
if *num_responses_lock == total_messages {
153159
info!("All messages responded. Closing connection...");
154160
ws_write.lock().await.close().await.unwrap();

0 commit comments

Comments
 (0)