remove unused var (#680)
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
parent
f4ebe6e8b9
commit
2476cc5e3c
@ -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()
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user