Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Oct 26, 2023
1 parent 046aa7c commit 22036fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libzeropool-rs/src/client/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ where
}
}

pub fn get_all_txs(&self) -> Vec<(u64, Transaction<P::Fr>)> {
pub fn all_txs(&self) -> Vec<(u64, Transaction<P::Fr>)> {
self.txs.iter().collect()
}

pub fn get_usable_notes(&self) -> Vec<(u64, Note<P::Fr>)> {
pub fn usable_notes(&self) -> Vec<(u64, Note<P::Fr>)> {
let next_usable_index = self.earliest_usable_index();

// Fetch all usable notes from the state
Expand All @@ -162,6 +162,10 @@ where
.collect()
}

pub fn latest_account(&self) -> Option<NativeAccount<P::Fr>> {
self.latest_account
}

/// Return an index of a earliest usable note.
pub fn earliest_usable_index(&self) -> u64 {
let latest_account_index = self
Expand Down

0 comments on commit 22036fd

Please sign in to comment.