Skip to content

Commit

Permalink
fix(x/staking): respect denom when validating params
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed Nov 25, 2024
1 parent c6cc794 commit 47461c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/staking/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func validateKeyRotationFee(i interface{}) error {
if v.IsNil() {
return fmt.Errorf("cons pubkey rotation fee cannot be nil: %s", v)
}
if v.IsLTE(sdk.NewInt64Coin(sdk.DefaultBondDenom, 0)) {
if v.IsLTE(sdk.NewInt64Coin(v.Denom, 0)) {
return fmt.Errorf("cons pubkey rotation fee cannot be negative or zero: %s", v)
}

Expand Down

0 comments on commit 47461c9

Please sign in to comment.