Skip to content

Commit

Permalink
feat: add in_debug_mode getter
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea committed Jan 16, 2025
1 parent cef5d77 commit e6c9e5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/rust-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ impl<R: FeltRng> Client<R> {
}
}

/// Returns if the client is in debug mode.
pub fn is_in_debug_mode(&self) -> bool {
self.in_debug_mode
}

/// Returns a reference to the client's random number generator. This can be used to generate
/// randomness for various purposes such as serial numbers, keys, etc.
pub fn rng(&mut self) -> &mut R {
Expand Down

0 comments on commit e6c9e5e

Please sign in to comment.