refactor(x/validate): add nil protection (#22902)
This commit is contained in:
parent
c6b1bdcd56
commit
f14cbd2584
@ -57,6 +57,10 @@ func (a AppModule) TxValidator(ctx context.Context, tx transaction.Tx) error {
|
||||
}
|
||||
}
|
||||
|
||||
if a.feeTxValidator == nil {
|
||||
panic("feeTxValidator cannot be nil")
|
||||
}
|
||||
|
||||
if err := a.feeTxValidator.ValidateTx(ctx, tx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user