Skip to content

Commit

Permalink
fix: apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
crypin committed Jun 21, 2023
1 parent b43ec4d commit bc7b57c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/ante/msg_ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ func (d MsgFilterDecorator) ValidateMsgs(ctx sdk.Context, msgs []sdk.Msg) error
}
}

// block mixed batch msg with regular msg
// tracking mixed batch msg with regular msg
case *exchangetypes.MsgPlaceBatchLimitOrder,
*exchangetypes.MsgPlaceMMBatchLimitOrder,
*exchangetypes.MsgCancelOrder:
numMsg--
numBatchMsg++
if numMsg > 0 {
return fmt.Errorf("cannot mix batch msg and regular msg in one tx")
}

// block double nested MsgExec
case *authz.MsgExec:
if nested {
Expand Down

0 comments on commit bc7b57c

Please sign in to comment.