Skip to content

Commit 0d6f75f

Browse files
authored
fix: fix slice init length (#2345)
1 parent 61cdfaa commit 0d6f75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/ccv/provider/keeper/consumer_equivocation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, consumerId string, m
184184
return err
185185
}
186186

187-
provAddrs := make([]types.ProviderConsAddress, len(byzantineValidators))
187+
provAddrs := make([]types.ProviderConsAddress, 0, len(byzantineValidators))
188188

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

0 commit comments

Comments
 (0)