From 0578aaecc478411113a6434fc432c765306d7e00 Mon Sep 17 00:00:00 2001 From: Krishang <93703995+kamuik16@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:12:36 +0530 Subject: [PATCH] feat: print IPC path (#7526) * feat: print ipc path * moved if check * moved println --- crates/anvil/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/anvil/src/lib.rs b/crates/anvil/src/lib.rs index 23a328d7a8b9..afc600a3b34d 100644 --- a/crates/anvil/src/lib.rs +++ b/crates/anvil/src/lib.rs @@ -237,6 +237,9 @@ impl NodeHandle { pub(crate) fn print(&self, fork: Option<&ClientFork>) { self.config.print(fork); if !self.config.silent { + if let Some(ipc_path) = self.ipc_path() { + println!("IPC path: {}", ipc_path); + } println!( "Listening on {}", self.addresses @@ -244,7 +247,7 @@ impl NodeHandle { .map(|addr| { addr.to_string() }) .collect::>() .join(", ") - ) + ); } }