Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Sep 18, 2024
1 parent 750ff51 commit e378b42
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions protocol/testutil/keeper/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import (
"testing"

dbm "github.com/cosmos/cosmos-db"
"github.com/dydxprotocol/v4-chain/protocol/indexer/indexer_manager"
"github.com/dydxprotocol/v4-chain/protocol/lib"
delaymsgtypes "github.com/dydxprotocol/v4-chain/protocol/x/delaymsg/types"
"github.com/stretchr/testify/mock"

storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down Expand Up @@ -50,6 +52,13 @@ func createVaultKeeper(
storeKey := storetypes.NewKVStoreKey(types.StoreKey)
stateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, db)

mockMsgSender := &mocks.IndexerMessageSender{}
mockMsgSender.On("Enabled").Return(true)
mockMsgSender.On("SendOnchainData", mock.Anything).Return()
mockMsgSender.On("SendOffchainData", mock.Anything).Return()

mockIndexerEventsManager := indexer_manager.NewIndexerEventManager(mockMsgSender, transientStoreKey, true)

k := keeper.NewKeeper(
cdc,
storeKey,
Expand All @@ -59,6 +68,7 @@ func createVaultKeeper(
&mocks.PricesKeeper{},
&mocks.SendingKeeper{},
&mocks.SubaccountsKeeper{},
mockIndexerEventsManager,
[]string{
lib.GovModuleAddress.String(),
delaymsgtypes.ModuleAddress.String(),
Expand Down

0 comments on commit e378b42

Please sign in to comment.