Skip to content

Commit

Permalink
panic with message
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Dec 16, 2024
1 parent cb896e5 commit b409dc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions x/validate/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ func (a AppModule) TxValidator(ctx context.Context, tx transaction.Tx) error {
}
}

if a.feeTxValidator != nil {
if err := a.feeTxValidator.ValidateTx(ctx, tx); err != nil {
return err
}
if a.feeTxValidator == nil {
panic("feeTxValidator cannot be nil")
}

if err := a.feeTxValidator.ValidateTx(ctx, tx); err != nil {
return err
}

if a.unorderTxValidator != nil {
Expand Down

0 comments on commit b409dc6

Please sign in to comment.