Skip to content

Commit

Permalink
fix keeper_test
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 4, 2023
1 parent ed53fd4 commit 8ae5ecb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions x/crosschain/keeper/keeper_test.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package keeper

import (
authkeeper2 "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper2 "github.com/cosmos/cosmos-sdk/x/bank/keeper"
fungibleKeeper "github.com/zeta-chain/zetacore/x/fungible/keeper"
"github.com/zeta-chain/zetacore/x/observer/keeper"
"testing"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/store"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
tmdb "github.com/tendermint/tm-db"
"github.com/zeta-chain/zetacore/x/crosschain/types"

typesparams "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/zeta-chain/zetacore/x/crosschain/types"
fungiblekeeper "github.com/zeta-chain/zetacore/x/fungible/keeper"
"github.com/zeta-chain/zetacore/x/observer/keeper"
)

func setupKeeper(t testing.TB) (*Keeper, sdk.Context) {
Expand All @@ -41,21 +41,21 @@ func setupKeeper(t testing.TB) (*Keeper, sdk.Context) {
memStoreKey,
"ZetacoreParams",
)
bankkeeper := bankkeeper2.BaseKeeper{}
authkeeper := authkeeper2.AccountKeeper{}
zetaobserverKeeper := keeper.Keeper{}
fungibleKeeper := fungibleKeeper.Keeper{}
bankKeeper := bankkeeper.BaseKeeper{}
authKeeper := authkeeper.AccountKeeper{}
observerKeeper := keeper.Keeper{}
fungibleKeeper := fungiblekeeper.Keeper{}

k := NewKeeper(
codec.NewProtoCodec(registry),
storeKey,
memStoreKey,
stakingkeeper.Keeper{}, // custom
paramsSubspace,
authkeeper,
bankkeeper,
zetaobserverKeeper,
fungibleKeeper,
authKeeper,
bankKeeper,
observerKeeper,
&fungibleKeeper,
)

ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger())
Expand Down

0 comments on commit 8ae5ecb

Please sign in to comment.