Skip to content

Commit

Permalink
fix: fix staking params panic (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno authored Nov 9, 2022
1 parent 19e3d99 commit c4b31dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (m *Manager) GetAllValidators() []ValidatorQuery {
validatorInfo.TotalStake = totalStake

// should be 0 if there are not enough validators
if slashingParams != nil && totalValidators >= stakingParams.StakingParams.MaxValidators {
if stakingParams != nil && totalValidators >= stakingParams.StakingParams.MaxValidators {
validatorInfo.LastValidatorStake = lastValidatorStake
}
}
Expand Down

0 comments on commit c4b31dd

Please sign in to comment.