Skip to content

Commit

Permalink
docs(staking): 🤝 add a doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Mar 13, 2024
1 parent f6c60a8 commit d33598d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/component/stake/src/component/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ pub trait StateReadExt: StateRead {
self.object_get(state_key::validators::rewards::staking())
}

/// Returns the [`DelegationChanges`] at the given [`Height`][block::Height].
#[instrument(skip(self), level = "trace")]
async fn get_delegation_changes(&self, height: block::Height) -> Result<DelegationChanges> {
self.get(&state_key::chain::delegation_changes::by_height(
Expand Down

0 comments on commit d33598d

Please sign in to comment.