diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index e03c24b627..7307284655 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -145,13 +145,13 @@ func headerToLightBlock(h ibctmtypes.Header) (*tmtypes.LightBlock, error) { // a valid light client attack from an ICS consumer chain and that the light client isn't expired func (k Keeper) CheckMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error { // check that the misbehaviour is for an ICS consumer chain - clientID, found := k.GetConsumerClientId(ctx, misbehaviour.Header1.Header.ChainID) + clientId, found := k.GetConsumerClientId(ctx, misbehaviour.Header1.Header.ChainID) if !found { return fmt.Errorf("incorrect misbehaviour with conflicting headers from a non-existent consumer chain: %s", misbehaviour.Header1.Header.ChainID) - } else if misbehaviour.ClientId != clientID { + } else if misbehaviour.ClientId != clientId { return fmt.Errorf("incorrect misbehaviour: expected client ID for consumer chain %s is %s got %s", misbehaviour.Header1.Header.ChainID, - clientID, + clientId, misbehaviour.ClientId, ) }