From 09ae9ba4595bf90e57382ea53d7249fab3317ee7 Mon Sep 17 00:00:00 2001 From: Kolby Moroz Liebl <31669092+KolbyML@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:46:23 -0700 Subject: [PATCH] fix: properly decode client version --- .../src/types/ping_extensions/extensions/type_0.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ethportal-api/src/types/ping_extensions/extensions/type_0.rs b/crates/ethportal-api/src/types/ping_extensions/extensions/type_0.rs index 6fc74478f..2599c612f 100644 --- a/crates/ethportal-api/src/types/ping_extensions/extensions/type_0.rs +++ b/crates/ethportal-api/src/types/ping_extensions/extensions/type_0.rs @@ -181,7 +181,7 @@ impl FromStr for ClientInfo { let client_name = parts[0]; - let Some((client_version, short_commit)) = parts[1].split('-').collect_tuple() else { + let Some((client_version, short_commit)) = parts[1].rsplit_once('-') else { bail!( "Invalid client info string: should look like 0.1.1-2b00d730 got {}", parts[1]