Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Nov 20, 2023
1 parent bb17850 commit 4828329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/liquidstakeibc/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,15 @@ func (m *MsgUpdateHostChain) ValidateBasic() error {
return err
}
if entries <= 0 {
return fmt.Errorf("Max entries undelegation/redelegation cannot be zero or lesser, found %v", entries)
return fmt.Errorf("max entries undelegation/redelegation cannot be zero or lesser, found %v", entries)
}
case KeyRedelegationAcceptableDelta:
redelegationAcceptableDelta, ok := sdk.NewIntFromString(update.Value)
if !ok {
return fmt.Errorf("unable to parse redeleagtion acceptable delta string %v to sdk.Int", update.Value)
}
if redelegationAcceptableDelta.LTE(math.ZeroInt()) {
return fmt.Errorf("Acceptable skew in validator delegations cannot be less that equal to zero, found %v", redelegationAcceptableDelta.String())
return fmt.Errorf("acceptable skew in validator delegations cannot be less that equal to zero, found %v", redelegationAcceptableDelta.String())
}
case KeyMinimumDeposit:
minimumDeposit, ok := sdk.NewIntFromString(update.Value)
Expand Down

0 comments on commit 4828329

Please sign in to comment.