remove unused var (#680)

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
JayT106 2021-10-16 10:41:44 -04:00 committed by GitHub
parent f4ebe6e8b9
commit 2476cc5e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -170,7 +170,6 @@ func (app *EthermintApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAd
// update bond intra-tx counters. // update bond intra-tx counters.
store := ctx.KVStore(app.keys[stakingtypes.StoreKey]) store := ctx.KVStore(app.keys[stakingtypes.StoreKey])
iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey) iter := sdk.KVStoreReversePrefixIterator(store, stakingtypes.ValidatorsKey)
counter := int16(0)
for ; iter.Valid(); iter.Next() { for ; iter.Valid(); iter.Next() {
addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key())) addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key()))
@ -185,7 +184,6 @@ func (app *EthermintApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAd
} }
app.StakingKeeper.SetValidator(ctx, validator) app.StakingKeeper.SetValidator(ctx, validator)
counter++
} }
iter.Close() iter.Close()

View File

@ -147,7 +147,7 @@ func (suite *KeeperTestSuite) TestGetCoinbaseAddress() {
header.ProposerAddress = valConsAddr.Bytes() header.ProposerAddress = valConsAddr.Bytes()
suite.ctx = suite.ctx.WithBlockHeader(header) 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.Require().True(found)
suite.app.EvmKeeper.WithContext(suite.ctx) suite.app.EvmKeeper.WithContext(suite.ctx)