Skip to content

Commit

Permalink
fix: latest compiler messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fragwuerdig authored Oct 16, 2023
1 parent d868d4b commit 3124e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/dyncomm/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ func (p Params) Validate() error {
return fmt.Errorf("cap shall be less than 1.0: %s", p.Cap)
}
if p.MaxZero.IsNegative() {
return fmt.Errorf("max zero shall be 0 or positive: %s", v)
return fmt.Errorf("max zero shall be 0 or positive: %s", p.MaxZero)
}
if p.MaxZero.GT(sdk.OneDec()) {
return fmt.Errorf("max zero shall be less than 1.0: %s", v)
return fmt.Errorf("max zero shall be less than 1.0: %s", p.MaxZero)
}

return nil
Expand Down

0 comments on commit 3124e54

Please sign in to comment.