From 609f8be8a464955a9cb8d829c38fa5df82504a8a Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Thu, 22 Jun 2023 09:58:03 +0200 Subject: [PATCH] Remove index refs --- sdk/src/client/node_api/core/routes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/client/node_api/core/routes.rs b/sdk/src/client/node_api/core/routes.rs index 8a1cbcf83e..7b996f5020 100644 --- a/sdk/src/client/node_api/core/routes.rs +++ b/sdk/src/client/node_api/core/routes.rs @@ -391,7 +391,7 @@ impl ClientInner { /// Gets the slot commitment by the given slot index. /// GET /api/core/v3/commitments/by-index/{index} - pub async fn get_slot_commitment_by_index(&self, slot_index: &SlotIndex) -> Result { + pub async fn get_slot_commitment_by_index(&self, slot_index: SlotIndex) -> Result { let path = &format!("api/core/v3/commitments/by-index/{slot_index}"); self.node_manager @@ -403,7 +403,7 @@ impl ClientInner { /// Gets the slot commitment, as raw bytes, by the given slot index. /// GET /api/core/v3/commitments/by-index/{index} - pub async fn get_slot_commitment_by_index_raw(&self, slot_index: &SlotIndex) -> Result> { + pub async fn get_slot_commitment_by_index_raw(&self, slot_index: SlotIndex) -> Result> { let path = &format!("api/core/v3/commitments/by-index/{slot_index}"); self.node_manager @@ -415,7 +415,7 @@ impl ClientInner { /// Get all UTXO changes of a given slot by its index. /// GET /api/core/v3/commitments/by-index/{index}/utxo-changes - pub async fn get_utxo_changes_by_slot_index(&self, slot_index: &SlotIndex) -> Result { + pub async fn get_utxo_changes_by_slot_index(&self, slot_index: SlotIndex) -> Result { let path = &format!("api/core/v3/commitments/by-index/{slot_index}/utxo-changes"); self.node_manager