From ad9842761bf7b7be95763ede4b39b1009651c9a5 Mon Sep 17 00:00:00 2001 From: moana Date: Tue, 22 Oct 2024 13:40:08 +0200 Subject: [PATCH] rusk-wallet: Clear up status messages --- rusk-wallet/src/clients.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/rusk-wallet/src/clients.rs b/rusk-wallet/src/clients.rs index db67bc835d..b788796ca6 100644 --- a/rusk-wallet/src/clients.rs +++ b/rusk-wallet/src/clients.rs @@ -251,9 +251,6 @@ impl State { &self, pk: &BlsPublicKey, ) -> Result { - let status = self.status; - status("Fetching account-data..."); - // the target type of the deserialization has to match the return type // of the contract-query let account: AccountData = rkyv::from_bytes( @@ -264,8 +261,6 @@ impl State { ) .map_err(|_| Error::Rkyv)?; - status("account-data received!"); - Ok(account) } @@ -278,9 +273,6 @@ impl State { /// Fetch the current root of the state. pub(crate) async fn fetch_root(&self) -> Result { - let status = self.status; - status("Fetching root..."); - // the target type of the deserialization has to match the return type // of the contract-query let root: BlsScalar = rkyv::from_bytes( @@ -291,8 +283,6 @@ impl State { ) .map_err(|_| Error::Rkyv)?; - status("root received!"); - Ok(root) } @@ -301,9 +291,6 @@ impl State { &self, pk: &BlsPublicKey, ) -> Result, Error> { - let status = self.status; - status("Fetching stake..."); - // the target type of the deserialization has to match the return type // of the contract-query let stake_data: Option = rkyv::from_bytes( @@ -314,10 +301,6 @@ impl State { ) .map_err(|_| Error::Rkyv)?; - status("Stake received!"); - - println!("Staking address: {}", Address::Public(*pk)); - Ok(stake_data) } @@ -326,9 +309,6 @@ impl State { } pub(crate) async fn fetch_chain_id(&self) -> Result { - let status = self.status; - status("Fetching chain_id..."); - // the target type of the deserialization has to match the return type // of the contract-query let chain_id: u8 = rkyv::from_bytes( @@ -343,16 +323,11 @@ impl State { ) .map_err(|_| Error::Rkyv)?; - status("Chain id received!"); - Ok(chain_id) } /// Queries the node to find the merkle-tree opening for a specific note. async fn fetch_opening(&self, note: &Note) -> Result { - let status = self.status; - status("Fetching note opening..."); - // the target type of the deserialization has to match the return type // of the contract-query let opening: Option = rkyv::from_bytes( @@ -370,16 +345,11 @@ impl State { // return an error here if the note opening couldn't be fetched let opening = opening.ok_or(Error::NoteNotFound)?; - status("Note opening received!"); - Ok(opening) } /// Queries the transfer contract for the number of notes. pub async fn fetch_num_notes(&self) -> Result { - let status = self.status; - status("Fetching note count..."); - // the target type of the deserialization has to match the return type // of the contract-query let note_count: u64 = rkyv::from_bytes( @@ -394,8 +364,6 @@ impl State { ) .map_err(|_| Error::Rkyv)?; - status("Latest note count received!"); - Ok(note_count) }