From 1a09bbe54b7c55f22bb517177178172c98925321 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Mon, 25 Sep 2023 14:22:21 +0200 Subject: [PATCH] Fix format of `milestoneIndex` query parameter of `ClientInner::event_status` (#1311) * Fix format of `milestoneIndex` query parameter of `ClientInner::event_status` * Update sdk/src/client/node_api/participation.rs Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> --------- Co-authored-by: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> --- sdk/CHANGELOG.md | 4 ++++ sdk/src/client/node_api/participation.rs | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sdk/CHANGELOG.md b/sdk/CHANGELOG.md index e6bd5c18d3..d08165a3fb 100644 --- a/sdk/CHANGELOG.md +++ b/sdk/CHANGELOG.md @@ -25,6 +25,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `migrate_db_chrysalis_to_stardust()` returns an error if no chrysalis data was found; +### Fixed + +- Format of `milestoneIndex` query parameter of `ClientInner::event_status`; + ## 1.0.3 - 2023-09-07 ### Added diff --git a/sdk/src/client/node_api/participation.rs b/sdk/src/client/node_api/participation.rs index 928a63a56c..2985c10c7a 100644 --- a/sdk/src/client/node_api/participation.rs +++ b/sdk/src/client/node_api/participation.rs @@ -3,7 +3,7 @@ //! IOTA node public participation routes. //! -//! +//! use crate::{ client::{ClientInner, Result}, @@ -49,7 +49,9 @@ impl ClientInner { self.get_request( &route, - milestone_index.map(|index| index.to_string()).as_deref(), + milestone_index + .map(|index| format!("milestoneIndex={index}")) + .as_deref(), false, false, )