Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Mar 5, 2024
1 parent 8e746e7 commit 246855f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions light-clients/cf-guest-cw/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ macro_rules! log {
pub(crate) use log;

impl<'a> Context<'a> {
/// Reads from storage this light client’s client state.
/// Reads this light client’s client state from storage.
pub fn client_state(&self) -> Result<state::ClientState> {
req_client_state(&self.client_id, self.client_states().get())
}
Expand All @@ -111,8 +111,8 @@ impl<'a> Context<'a> {
state::ClientStates::new_ro(self.storage)
}

/// Reads from storage this light client’s consensus state at given
/// height.
/// Reads this light client’s consensus state at given height from
/// storage.
pub fn consensus_state(&self, height: ibc::Height) -> Result<state::ConsensusState> {
req_consensus_state(&self.client_id, height, self.consensus_states().get(height))
}
Expand All @@ -125,7 +125,7 @@ impl<'a> Context<'a> {
}

impl<'a> ContextMut<'a> {
/// Reads from storage this light client’s client state.
/// Reads this light client’s client state from storage.
pub fn client_state(&self) -> Result<state::ClientState> {
req_client_state(&self.client_id, self.client_states().get())
}
Expand All @@ -142,8 +142,8 @@ impl<'a> ContextMut<'a> {
state::ClientStates::new(self.storage)
}

/// Reads from storage this light client’s consensus state at given
/// height.
/// Reads this light client’s consensus state at given height from
/// storage.
pub fn consensus_state(&self, height: ibc::Height) -> Result<state::ConsensusState> {
req_consensus_state(&self.client_id, height, self.consensus_states().get(height))
}
Expand Down

0 comments on commit 246855f

Please sign in to comment.