From 6b9de696f4c03ceb3d3e9104182afbc5a094573b Mon Sep 17 00:00:00 2001 From: Matt Kocubinski Date: Mon, 24 Apr 2023 11:53:31 -0500 Subject: [PATCH] revert keeper_test change --- tests/integration/gov/keeper/keeper_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/integration/gov/keeper/keeper_test.go b/tests/integration/gov/keeper/keeper_test.go index 03925313340..18d277bef2b 100644 --- a/tests/integration/gov/keeper/keeper_test.go +++ b/tests/integration/gov/keeper/keeper_test.go @@ -3,11 +3,10 @@ package keeper_test import ( "testing" + "cosmossdk.io/simapp" cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" "gotest.tools/v3/assert" - "cosmossdk.io/simapp" - "github.com/cosmos/cosmos-sdk/baseapp" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" @@ -53,7 +52,7 @@ func initFixture(t *testing.T) *fixture { queryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) v1.RegisterQueryServer(queryHelper, app.GovKeeper) legacyQueryHelper := baseapp.NewQueryServerTestHelper(ctx, app.InterfaceRegistry()) - v1beta1.RegisterQueryServer(legacyQueryHelper, keeper.NewLegacyQueryServer(&app.GovKeeper)) + v1beta1.RegisterQueryServer(legacyQueryHelper, keeper.NewLegacyQueryServer(app.GovKeeper)) queryClient := v1.NewQueryClient(queryHelper) legacyQueryClient := v1beta1.NewQueryClient(legacyQueryHelper) @@ -61,7 +60,7 @@ func initFixture(t *testing.T) *fixture { f.ctx = ctx f.queryClient = queryClient f.legacyQueryClient = legacyQueryClient - f.msgSrvr = keeper.NewMsgServerImpl(&f.app.GovKeeper) + f.msgSrvr = keeper.NewMsgServerImpl(f.app.GovKeeper) govAcct := f.app.GovKeeper.GetGovernanceAccount(f.ctx).GetAddress() f.legacyMsgSrvr = keeper.NewLegacyMsgServerImpl(govAcct.String(), f.msgSrvr)