From ed4d31a8654a6b4023f9a5170d0d6291ddcc9092 Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Thu, 9 May 2024 20:19:54 -0600 Subject: [PATCH] fix lint --- tests/e2e/auth/vesting/suite.go | 3 ++- .../auth/keeper/vesting_account_test.go | 15 +++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/e2e/auth/vesting/suite.go b/tests/e2e/auth/vesting/suite.go index 6b5f0816fe2f..3dd77cbb00e0 100644 --- a/tests/e2e/auth/vesting/suite.go +++ b/tests/e2e/auth/vesting/suite.go @@ -3,10 +3,11 @@ package testutil import ( "fmt" - "cosmossdk.io/math" "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" + "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec/address" clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" diff --git a/tests/integration/auth/keeper/vesting_account_test.go b/tests/integration/auth/keeper/vesting_account_test.go index 6080dd6e27c4..3c7203cf1737 100644 --- a/tests/integration/auth/keeper/vesting_account_test.go +++ b/tests/integration/auth/keeper/vesting_account_test.go @@ -4,24 +4,23 @@ import ( "testing" "time" - "cosmossdk.io/math" - "cosmossdk.io/simapp" - tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + tmtime "github.com/cometbft/cometbft/types/time" "github.com/stretchr/testify/require" + "cosmossdk.io/math" + "cosmossdk.io/simapp" + + addresscodec "github.com/cosmos/cosmos-sdk/codec/address" "github.com/cosmos/cosmos-sdk/runtime" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/types" vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" banktestutil "github.com/cosmos/cosmos-sdk/x/bank/testutil" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - - tmtime "github.com/cometbft/cometbft/types/time" - addresscodec "github.com/cosmos/cosmos-sdk/codec/address" - "github.com/cosmos/cosmos-sdk/testutil/testdata" ) var ( @@ -216,7 +215,7 @@ func createValidator(t *testing.T, ctx sdk.Context, app *simapp.SimApp, powers i addrs := simapp.AddTestAddrsIncremental(app, ctx, 1, valTokens) valAddrs := simtestutil.ConvertAddrsToValAddrs(addrs) pks := simtestutil.CreateTestPubKeys(1) - cdc := app.AppCodec() //simapp.MakeTestEncodingConfig().Marshaler + cdc := app.AppCodec() authority := types.NewModuleAddress("gov") app.StakingKeeper = stakingkeeper.NewKeeper(cdc, runtime.NewKVStoreService(app.GetKey(stakingtypes.StoreKey)), app.AccountKeeper, app.BankKeeper, authority.String(), addresscodec.NewBech32Codec(sdk.Bech32PrefixValAddr), addresscodec.NewBech32Codec(sdk.Bech32PrefixConsAddr))