Skip to content

Commit

Permalink
min duration from days to hours, changed weekly to day (#859)
Browse files Browse the repository at this point in the history
* min duration from 1d to 24h (d not recognized), changed weekly to day (weekly doesnt work, only week)

* changed from seconds to hours

(cherry picked from commit e4e97a3)
  • Loading branch information
czarcas7ic authored and mergify-bot committed Feb 13, 2022
1 parent 9a2d46f commit df78ed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/epochs/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func GetCmdCurrentEpoch() *cobra.Command {
fmt.Sprintf(`Query current epoch by specified identifier.
Example:
$ %s query epochs current-epoch weekly
$ %s query epochs current-epoch day
`,
version.AppName,
),
Expand Down
4 changes: 2 additions & 2 deletions x/lockup/client/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const (
func FlagSetLockTokens() *flag.FlagSet {
fs := flag.NewFlagSet("", flag.ContinueOnError)

fs.String(FlagDuration, "86400s", "The duration token to be locked. e.g. 1h, 1m, 1s, 0.1s")
fs.String(FlagDuration, "24h", "The duration token to be locked. e.g. 24h, 168h, 336h")
return fs
}

func FlagSetMinDuration() *flag.FlagSet {
fs := flag.NewFlagSet("", flag.ContinueOnError)

fs.String(FlagMinDuration, "1d", "The minimum duration of token bonded. e.g. 1d, 7d, 14d")
fs.String(FlagMinDuration, "336h", "The minimum duration of token bonded. e.g. 24h, 168h, 336h")
return fs
}

0 comments on commit df78ed4

Please sign in to comment.