From ef9406b94ac7b53c4ca79b963eea156455752c09 Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:04:15 -0400 Subject: [PATCH] fix: lint --- app/sim_test.go | 9 ++++++--- x/tokenfactory/keeper/keeper.go | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/sim_test.go b/app/sim_test.go index 8ed8ae2..bf38ed3 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -11,11 +11,13 @@ import ( "testing" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + "github.com/spf13/viper" + "github.com/stretchr/testify/require" + abci "github.com/cometbft/cometbft/abci/types" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" + dbm "github.com/cosmos/cosmos-db" - "github.com/spf13/viper" - "github.com/stretchr/testify/require" "cosmossdk.io/log" "cosmossdk.io/store" @@ -285,10 +287,11 @@ func TestAppSimulationAfterImport(t *testing.T) { newApp := NewApp(log.NewNopLogger(), newDB, nil, true, appOptions, []wasmkeeper.Option{}, baseapp.SetChainID(SimAppChainID)) require.Equal(t, "tokenfactory", newApp.Name()) - newApp.InitChain(&abci.RequestInitChain{ + _, err = newApp.InitChain(&abci.RequestInitChain{ AppStateBytes: exported.AppState, ChainId: SimAppChainID, }) + require.NoError(t, err) _, _, err = simulation.SimulateFromSeed( t, diff --git a/x/tokenfactory/keeper/keeper.go b/x/tokenfactory/keeper/keeper.go index c6ea0ff..8ff361f 100644 --- a/x/tokenfactory/keeper/keeper.go +++ b/x/tokenfactory/keeper/keeper.go @@ -4,7 +4,6 @@ import ( "context" "fmt" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/strangelove-ventures/tokenfactory/x/tokenfactory/types" "cosmossdk.io/log" @@ -13,6 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) type (