Skip to content

Commit

Permalink
fix: fix nil validator when publishing message (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing authored Jul 18, 2023
1 parent e21fed3 commit 5a7b238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/slashing/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (k *Keeper) slashingSideDowntime(ctx sdk.Context, pack *SideSlashPackage) s
//}
k.setValidatorSigningInfo(sideCtx, sideConsAddr, signInfo)

if k.PbsbServer != nil {
if k.PbsbServer != nil && validator != nil {
event := SideSlashEvent{
Validator: validator.GetOperator(),
InfractionType: Downtime,
Expand Down

0 comments on commit 5a7b238

Please sign in to comment.