From 2476cc5e3c7a1711c0c81ff8722debe3352f10a4 Mon Sep 17 00:00:00 2001 From: JayT106 Date: Sat, 16 Oct 2021 10:41:44 -0400 Subject: [PATCH] remove unused var (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> --- app/export.go | 2 -- x/evm/keeper/state_transition_test.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/export.go b/app/export.go index 53940632..e1fd1187 100644 --- a/app/export.go +++ b/app/export.go @@ -170,7 +170,6 @@ func (app *EthermintApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAd // update bond intra-tx counters. store := ctx.KVStore(app.keys[stakingtypes.StoreKey]) iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) - counter := int16(0) for ; iter.Valid(); iter.Next() { addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key())) @@ -185,7 +184,6 @@ func (app *EthermintApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAd } app.StakingKeeper.SetValidator(ctx, validator) - counter++ } iter.Close() diff --git a/x/evm/keeper/state_transition_test.go b/x/evm/keeper/state_transition_test.go index cefd96c4..258d9dbd 100644 --- a/x/evm/keeper/state_transition_test.go +++ b/x/evm/keeper/state_transition_test.go @@ -147,7 +147,7 @@ func (suite *KeeperTestSuite) TestGetCoinbaseAddress() { header.ProposerAddress = valConsAddr.Bytes() suite.ctx = suite.ctx.WithBlockHeader(header) - validator, found := suite.app.StakingKeeper.GetValidatorByConsAddr(suite.ctx, valConsAddr.Bytes()) + _, found := suite.app.StakingKeeper.GetValidatorByConsAddr(suite.ctx, valConsAddr.Bytes()) suite.Require().True(found) suite.app.EvmKeeper.WithContext(suite.ctx)