Skip to content

Commit

Permalink
fix: fix slice init length (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusttech authored Oct 25, 2024
1 parent 61cdfaa commit 0d6f75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/consumer_equivocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, consumerId string, m
return err
}

provAddrs := make([]types.ProviderConsAddress, len(byzantineValidators))
provAddrs := make([]types.ProviderConsAddress, 0, len(byzantineValidators))

// slash, jail, and tombstone the Byzantine validators
for _, v := range byzantineValidators {
Expand Down

0 comments on commit 0d6f75f

Please sign in to comment.