Skip to content

Commit 50ba3c9

Browse files
mergify[bot]Alex | Skip
andauthored
refactor(x/validate): add nil protection (backport #22902) (#22909)
Co-authored-by: Alex | Skip <alex@skip.money>
1 parent 9065da9 commit 50ba3c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x/validate/module.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ func (a AppModule) TxValidator(ctx context.Context, tx transaction.Tx) error {
5757
}
5858
}
5959

60+
if a.feeTxValidator == nil {
61+
panic("feeTxValidator cannot be nil")
62+
}
63+
6064
if err := a.feeTxValidator.ValidateTx(ctx, tx); err != nil {
6165
return err
6266
}

0 commit comments

Comments
 (0)