diff --git a/state/core_access.go b/state/core_access.go index c3fbd4836a..c50fbdea9f 100644 --- a/state/core_access.go +++ b/state/core_access.go @@ -51,7 +51,6 @@ type CoreAccessor struct { signer *apptypes.KeyringSigner getter libhead.Head[*header.ExtendedHeader] - queryCli banktypes.QueryClient stakingCli stakingtypes.QueryClient rpcCli rpcclient.ABCIClient @@ -114,9 +113,7 @@ func (ca *CoreAccessor) Start(ctx context.Context) error { return err } ca.coreConn = client - // create the query client - queryCli := banktypes.NewQueryClient(ca.coreConn) - ca.queryCli = queryCli + // create the staking query client stakingCli := stakingtypes.NewQueryClient(ca.coreConn) ca.stakingCli = stakingCli @@ -153,7 +150,6 @@ func (ca *CoreAccessor) Stop(context.Context) error { } ca.coreConn = nil - ca.queryCli = nil return nil } diff --git a/state/integration_test.go b/state/integration_test.go index 193e7bddc7..1aa342649c 100644 --- a/state/integration_test.go +++ b/state/integration_test.go @@ -8,7 +8,6 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" @@ -62,9 +61,6 @@ func (s *IntegrationTestSuite) SetupSuite() { func setClients(ca *CoreAccessor, conn *grpc.ClientConn, abciCli rpcclient.ABCIClient) { ca.coreConn = conn - // create the query client - queryCli := banktypes.NewQueryClient(ca.coreConn) - ca.queryCli = queryCli // create the staking query client stakingCli := stakingtypes.NewQueryClient(ca.coreConn) ca.stakingCli = stakingCli