diff --git a/tests/e2e/e2e_setup_test.go b/tests/e2e/e2e_setup_test.go index 0ce8235868c..1a1eb1a1cfd 100644 --- a/tests/e2e/e2e_setup_test.go +++ b/tests/e2e/e2e_setup_test.go @@ -502,9 +502,7 @@ func (s *IntegrationTestSuite) upgrade() { } func (s *IntegrationTestSuite) upgradeFork() { - for _, chainConfig := range s.chainConfigs { - for i := range chainConfig.validators { validatorResource, exists := s.containerManager.GetValidatorResource(chainConfig.meta.Id, i) require.True(s.T(), exists) diff --git a/x/epochs/keeper/epoch_test.go b/x/epochs/keeper/epoch_test.go index 922f3b0dba8..dea59d69830 100644 --- a/x/epochs/keeper/epoch_test.go +++ b/x/epochs/keeper/epoch_test.go @@ -35,7 +35,8 @@ func (suite *KeeperTestSuite) TestAddEpochInfo() { CurrentEpochStartHeight: startBlockHeight, CurrentEpochStartTime: time.Time{}, EpochCountingStarted: false, - }}, + }, + }, "zero_duration": { addedEpochInfo: types.EpochInfo{ Identifier: defaultIdentifier, diff --git a/x/gamm/pool-models/balancer/pool_test.go b/x/gamm/pool-models/balancer/pool_test.go index d4b3133672f..466a93fc17d 100644 --- a/x/gamm/pool-models/balancer/pool_test.go +++ b/x/gamm/pool-models/balancer/pool_test.go @@ -607,7 +607,6 @@ func (suite *BalancerTestSuite) TestBalancerCalculateAmountOutAndIn_InverseRelat sut := func() { suite.TestCalculateAmountOutAndIn_InverseRelationship(ctx, pool, poolAssetIn.Token.Denom, poolAssetOut.Token.Denom, tc.initialCalcOut, swapFeeDec) - } balancerPool, ok := pool.(*balancer.Pool) diff --git a/x/mint/keeper/hooks_test.go b/x/mint/keeper/hooks_test.go index dd9b66c3941..f6fa8e6f877 100644 --- a/x/mint/keeper/hooks_test.go +++ b/x/mint/keeper/hooks_test.go @@ -236,9 +236,7 @@ func TestAfterEpochEnd_FirstYearThirdening_RealParameters(t *testing.T) { developerAccountBalance = 225_000_000_000_000 ) - var ( - reductionFactor = sdk.NewDec(2).Quo(sdk.NewDec(3)) - ) + reductionFactor := sdk.NewDec(2).Quo(sdk.NewDec(3)) app := osmoapp.Setup(false) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) @@ -256,7 +254,7 @@ func TestAfterEpochEnd_FirstYearThirdening_RealParameters(t *testing.T) { Staking: sdk.NewDecWithPrec(25, 2), PoolIncentives: sdk.NewDecWithPrec(45, 2), DeveloperRewards: sdk.NewDecWithPrec(25, 2), - CommunityPool: sdk.NewDecWithPrec(05, 2), + CommunityPool: sdk.NewDecWithPrec(0o5, 2), }, WeightedDeveloperRewardsReceivers: []types.WeightedAddress{ { diff --git a/x/mint/keeper/keeper_test.go b/x/mint/keeper/keeper_test.go index 802cfd98268..a7c65186a10 100644 --- a/x/mint/keeper/keeper_test.go +++ b/x/mint/keeper/keeper_test.go @@ -268,7 +268,7 @@ func (suite *KeeperTestSuite) TestSetInitialSupplyOffsetDuringMigration() { isDeveloperModuleAccountCreated: true, }, "dev vesting module account does not exist": { - blockHeight: 1, + blockHeight: 1, expectedError: keeper.ErrDevVestingModuleAccountNotCreated, }, } diff --git a/x/mint/simulation/genesis.go b/x/mint/simulation/genesis.go index 94dd75c1f70..bb121e631aa 100644 --- a/x/mint/simulation/genesis.go +++ b/x/mint/simulation/genesis.go @@ -31,7 +31,7 @@ var ( Staking: sdk.NewDecWithPrec(25, 2), PoolIncentives: sdk.NewDecWithPrec(45, 2), DeveloperRewards: sdk.NewDecWithPrec(25, 2), - CommunityPool: sdk.NewDecWithPrec(05, 2), + CommunityPool: sdk.NewDecWithPrec(0o5, 2), } weightedDevRewardReceivers = []types.WeightedAddress{ { diff --git a/x/mint/types/minter_test.go b/x/mint/types/minter_test.go index cb841155a9f..4df3dc8e31e 100644 --- a/x/mint/types/minter_test.go +++ b/x/mint/types/minter_test.go @@ -45,7 +45,6 @@ func BenchmarkNextEpochProvisions(b *testing.B) { } func TestMinterValidate(t *testing.T) { - testcases := []struct { name string minter types.Minter diff --git a/x/pool-incentives/keeper/hooks.go b/x/pool-incentives/keeper/hooks.go index af099cbc535..60fd8e97254 100644 --- a/x/pool-incentives/keeper/hooks.go +++ b/x/pool-incentives/keeper/hooks.go @@ -11,8 +11,10 @@ type Hooks struct { k Keeper } -var _ gammtypes.GammHooks = Hooks{} -var _ minttypes.MintHooks = Hooks{} +var ( + _ gammtypes.GammHooks = Hooks{} + _ minttypes.MintHooks = Hooks{} +) // Create new pool incentives hooks. func (k Keeper) Hooks() Hooks { return Hooks{k} } diff --git a/x/superfluid/client/cli/query.go b/x/superfluid/client/cli/query.go index 22e9bddc4c8..e120cb6bf59 100644 --- a/x/superfluid/client/cli/query.go +++ b/x/superfluid/client/cli/query.go @@ -366,7 +366,6 @@ func GetCmdTotalDelegationByDelegator() *cobra.Command { res, err := queryClient.TotalDelegationByDelegator(cmd.Context(), &types.QueryTotalDelegationByDelegatorRequest{ DelegatorAddress: args[0], }) - if err != nil { return err } diff --git a/x/superfluid/keeper/grpc_query.go b/x/superfluid/keeper/grpc_query.go index 8d8e475ab71..88f3093d4bb 100644 --- a/x/superfluid/keeper/grpc_query.go +++ b/x/superfluid/keeper/grpc_query.go @@ -483,7 +483,7 @@ func (q Querier) TotalDelegationByDelegator(goCtx context.Context, req *types.Qu res.TotalEquivalentStakedAmount = res.TotalEquivalentStakedAmount.Add(coin) } - //this is for getting normal staking + // this is for getting normal staking q.sk.IterateDelegations(ctx, delAddr, func(_ int64, del stakingtypes.DelegationI) bool { val, found := q.sk.GetValidator(ctx, del.GetValidatorAddr()) if !found { diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index a4e11fad8ac..7b1c1413b37 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -29,6 +29,4 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } -var ( - ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) -) +var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())