From 0226859092f7f457e3bb9b8ba88028697e8a6c50 Mon Sep 17 00:00:00 2001 From: insumity Date: Wed, 21 Feb 2024 16:24:37 +0100 Subject: [PATCH] rename var to avoid shadowing --- x/ccv/provider/keeper/relay.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ccv/provider/keeper/relay.go b/x/ccv/provider/keeper/relay.go index 2c00d40441..59fec69534 100644 --- a/x/ccv/provider/keeper/relay.go +++ b/x/ccv/provider/keeper/relay.go @@ -215,11 +215,11 @@ func (k Keeper) QueueVSCPackets(ctx sdk.Context) { // Get the validator updates from the staking module. // Note: GetValidatorUpdates panics if the updates provided by the x/staking module // of cosmos-sdk is invalid. - valUpdates := k.stakingKeeper.GetValidatorUpdates(ctx) + stakingValUpdates := k.stakingKeeper.GetValidatorUpdates(ctx) for _, chain := range k.GetAllConsumerChains(ctx) { // Apply the key assignment to the validator updates. - valUpdates := k.MustApplyKeyAssignmentToValUpdates(ctx, chain.ChainId, valUpdates) + valUpdates := k.MustApplyKeyAssignmentToValUpdates(ctx, chain.ChainId, stakingValUpdates) // check whether there are changes in the validator set; // note that this also entails unbonding operations