Skip to content

Commit

Permalink
fix: revert ValidateGovMsgs() to main definition
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Dec 12, 2023
1 parent b72662d commit 0bc16b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ante/gov_ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (g GovPreventSpamDecorator) ValidateGovMsgs(ctx sdk.Context, msgs []sdk.Msg
// prevent messages with insufficient initial deposit amount
params := g.govKeeper.GetParams(ctx)
minInitialDeposit := g.calcMinInitialDeposit(params.MinDeposit)
if msg.InitialDeposit.IsAllLT(minInitialDeposit) {
if !msg.InitialDeposit.IsAllGTE(minInitialDeposit) {
return errorsmod.Wrapf(gaiaerrors.ErrInsufficientFunds, "insufficient initial deposit amount - required: %v", minInitialDeposit)
}
}
Expand Down

0 comments on commit 0bc16b8

Please sign in to comment.