diff --git a/examples/chat/src/network.rs b/examples/chat/src/network.rs index 74be451..e36a208 100644 --- a/examples/chat/src/network.rs +++ b/examples/chat/src/network.rs @@ -17,7 +17,7 @@ pub mod types; use client::NetworkClient; -const PROTOCOL_VERSION: &str = concat!("/", "boot-node", "/", "0.5.0"); +const PROTOCOL_VERSION: &str = concat!("/", env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")); #[derive(NetworkBehaviour)] struct Behaviour {