From a556bc4a88f8c90592303502578261da72ad4709 Mon Sep 17 00:00:00 2001 From: Marko Date: Fri, 6 Oct 2023 15:16:27 +0300 Subject: [PATCH] chore(circuit): remove comet dep (#17984) --- x/circuit/ante/circuit_test.go | 5 +---- x/circuit/go.mod | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/x/circuit/ante/circuit_test.go b/x/circuit/ante/circuit_test.go index 0104d0c4f24e..32a2eb53415a 100644 --- a/x/circuit/ante/circuit_test.go +++ b/x/circuit/ante/circuit_test.go @@ -4,7 +4,6 @@ import ( "context" "testing" - abci "github.com/cometbft/cometbft/abci/types" "github.com/stretchr/testify/require" storetypes "cosmossdk.io/store/types" @@ -13,7 +12,6 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -42,8 +40,7 @@ func initFixture(t *testing.T) *fixture { mockStoreKey := storetypes.NewKVStoreKey("test") encCfg := moduletestutil.MakeTestEncodingConfig(auth.AppModuleBasic{}, bank.AppModuleBasic{}) mockclientCtx := client.Context{}. - WithTxConfig(encCfg.TxConfig). - WithClient(clitestutil.NewMockCometRPC(abci.ResponseQuery{})) + WithTxConfig(encCfg.TxConfig) return &fixture{ ctx: testutil.DefaultContextWithDB(t, mockStoreKey, storetypes.NewTransientStoreKey("transient_test")).Ctx, diff --git a/x/circuit/go.mod b/x/circuit/go.mod index a969060a241e..c22d79706cc5 100644 --- a/x/circuit/go.mod +++ b/x/circuit/go.mod @@ -10,7 +10,6 @@ require ( cosmossdk.io/errors v1.0.0 cosmossdk.io/store v1.0.0-rc.0 github.com/cockroachdb/errors v1.11.1 - github.com/cometbft/cometbft v0.38.0 github.com/cosmos/cosmos-sdk v0.47.5 github.com/cosmos/gogoproto v1.4.11 github.com/golang/protobuf v1.5.3 @@ -38,6 +37,7 @@ require ( github.com/cockroachdb/pebble v0.0.0-20230824192853-9bb0864bdb98 // indirect github.com/cockroachdb/redact v1.1.5 // indirect github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft v0.38.0 // indirect github.com/cometbft/cometbft-db v0.8.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.0 // indirect