From 80c3c6db006ac48f5900f803457bec9097c4e66d Mon Sep 17 00:00:00 2001 From: luna Date: Fri, 22 Dec 2023 21:58:27 -0800 Subject: [PATCH] Changed Some strings to Bytes32 --- clients/src/api/full_node.rs | 4 ++-- clients/src/api/responses.rs | 4 ++-- clients/src/rpc/full_node.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/src/api/full_node.rs b/clients/src/api/full_node.rs index 1ff6559..56c9166 100644 --- a/clients/src/api/full_node.rs +++ b/clients/src/api/full_node.rs @@ -97,8 +97,8 @@ pub trait FullnodeAPI { height: u32, ) -> Result; async fn get_coin_spend(&self, coin_record: &CoinRecord) -> Result; - async fn get_all_mempool_tx_ids(&self) -> Result, Error>; - async fn get_all_mempool_items(&self) -> Result, Error>; + async fn get_all_mempool_tx_ids(&self) -> Result, Error>; + async fn get_all_mempool_items(&self) -> Result, Error>; async fn get_mempool_item_by_tx_id(&self, tx_id: &str) -> Result; async fn get_mempool_items_by_coin_name( &self, diff --git a/clients/src/api/responses.rs b/clients/src/api/responses.rs index cd54daa..450e92c 100644 --- a/clients/src/api/responses.rs +++ b/clients/src/api/responses.rs @@ -147,13 +147,13 @@ pub struct MempoolItemAryResp { #[derive(Debug, Clone, Deserialize, Serialize)] pub struct MempoolItemsResp { - pub mempool_items: HashMap, + pub mempool_items: HashMap, pub success: bool, } #[derive(Debug, Clone, Deserialize, Serialize)] pub struct MempoolTXResp { - pub tx_ids: Vec, + pub tx_ids: Vec, pub success: bool, } diff --git a/clients/src/rpc/full_node.rs b/clients/src/rpc/full_node.rs index 1cf3f26..4c25af2 100644 --- a/clients/src/rpc/full_node.rs +++ b/clients/src/rpc/full_node.rs @@ -461,7 +461,7 @@ impl FullnodeAPI for FullnodeClient { self.get_puzzle_and_solution(&coin_record.coin.name(), coin_record.spent_block_index) .await } - async fn get_all_mempool_tx_ids(&self) -> Result, Error> { + async fn get_all_mempool_tx_ids(&self) -> Result, Error> { Ok(post::( &self.client, &get_url(self.host.as_str(), self.port, "get_all_mempool_tx_ids"), @@ -471,7 +471,7 @@ impl FullnodeAPI for FullnodeClient { .await? .tx_ids) } - async fn get_all_mempool_items(&self) -> Result, Error> { + async fn get_all_mempool_items(&self) -> Result, Error> { Ok(post::( &self.client, &get_url(self.host.as_str(), self.port, "get_all_mempool_items"),