Skip to content

Commit

Permalink
fix: improve documentation for --epoch option in rewards command to c…
Browse files Browse the repository at this point in the history
…larify that it only returns accumulated rewards available to claim
  • Loading branch information
joel-u410 committed Jan 28, 2025
1 parent c988a40 commit ec6763b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/apps_lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ pub mod cmds {
fn def() -> App {
App::new(Self::CMD)
.about(wrap!(
"Query the latest rewards available to claim for a given \
"Query the rewards available to claim for a given \
delegation (or self-bond)."
))
.add_args::<args::QueryRewards<args::CliTypes>>()
Expand Down Expand Up @@ -7341,7 +7341,11 @@ pub mod args {
)
.arg(EPOCH.def().help(wrap!(
"The epoch at which to query (corresponding to the last \
committed block, if not specified)."
committed block, if not specified). \
\
Note: when querying by epoch, this returns the accumulated \
rewards that were available to claim at the start of the \
epoch."
)))
}
}
Expand Down

0 comments on commit ec6763b

Please sign in to comment.