diff --git a/x/auction/keeper/auction.go b/x/auction/keeper/auction.go index e02e068f..2ec0e321 100644 --- a/x/auction/keeper/auction.go +++ b/x/auction/keeper/auction.go @@ -38,11 +38,7 @@ func (k Keeper) ValidateBidInfo(ctx sdk.Context, highestBid sdk.Coin, bidInfo *t } // Validate the timeouts of the transactions in the bundle. - if err := k.ValidateBundleTimeouts(bidInfo); err != nil { - return err - } - - return nil + return k.ValidateBundleTimeouts(bidInfo) } // ValidateAuctionBid validates that the bidder has sufficient funds to participate in the auction and that the bid amount @@ -186,8 +182,8 @@ func (k Keeper) ValidateAuctionBundle(bidder sdk.AccAddress, bundleSigners []map } // ValidateBundleTimeouts validates that the timeouts of the transactions in the bundle are valid. We consider -// the timeouts valid iff all of the bidders txs in the bundle are all the same and are equal to the timeout of the bid. -// This is mandatory as otherwise other searchers can potentially include other searcher's transactions in their bundles. +// the timeouts valid iff all of the bidders txs in the bundle are equal to the timeout of the bid. This is +// mandatory as otherwise other searchers can potentially include other searcher's transactions in their bundles. func (k Keeper) ValidateBundleTimeouts(bidInfo *types.BidInfo) error { bidder := bidInfo.Bidder.String() bidTimeout := bidInfo.Timeout