From 24c5e692890cc70c75dd217017fe2eb465dce144 Mon Sep 17 00:00:00 2001 From: Filip Bozic <70634661+fbozic@users.noreply.github.com> Date: Tue, 21 May 2024 09:38:46 +0200 Subject: [PATCH] chore: revert hardcoded PROTOCOL_VERSION --- examples/chat/src/network.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {