From 5fd6636d098b23d1f8190e0bc8c1096ce4ff1075 Mon Sep 17 00:00:00 2001 From: insumity Date: Wed, 21 Feb 2024 17:01:36 +0100 Subject: [PATCH] style: (tiny) rename variable to avoid shadowing (#1654) rename var to avoid shadowing (cherry picked from commit 6d09487d9cf20b6d32db1494578e4feb1b693960) --- 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