Skip to content

Commit

Permalink
Fix format of milestoneIndex query parameter of `ClientInner::event…
Browse files Browse the repository at this point in the history
…_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 <[email protected]>

---------

Co-authored-by: Thoralf-M <[email protected]>
  • Loading branch information
thibault-martinez and Thoralf-M authored Sep 25, 2023
1 parent 2767aa7 commit 1a09bbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions sdk/src/client/node_api/participation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

//! IOTA node public participation routes.
//! <https://github.com/iota-community/treasury/blob/main/specifications/hornet-participation-plugin.md#public-node-endpoints>
//! <https://github.com/iotaledger/inx-participation/blob/develop/core/participation/routes.go>
//! <https://github.com/iotaledger/inx-participation/blob/develop/components/participation/routes.go>

use crate::{
client::{ClientInner, Result},
Expand Down Expand Up @@ -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,
)
Expand Down

0 comments on commit 1a09bbe

Please sign in to comment.