Skip to content

Commit

Permalink
extract stateful validation into own fn
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx committed Mar 4, 2024
1 parent 2d1f0a9 commit c89ef04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/x/clob/ante/clob.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package ante

import (
"fmt"

errorsmod "cosmossdk.io/errors"
"github.com/cometbft/cometbft/crypto/tmhash"
cometbftlog "github.com/cometbft/cometbft/libs/log"
Expand Down Expand Up @@ -44,6 +46,7 @@ func (cd ClobDecorator) AnteHandle(
simulate bool,
next sdk.AnteHandler,
) (sdk.Context, error) {
fmt.Println("clob ante handler")
// No need to process during `DeliverTx` or simulation, call next `AnteHandler`.
if lib.IsDeliverTxMode(ctx) || simulate {
return next(ctx, tx, simulate)
Expand Down

0 comments on commit c89ef04

Please sign in to comment.