2019-08-15 08:19:16 -07:00
|
|
|
package keeper_test
|
|
|
|
|
|
|
|
import (
|
2020-08-14 10:58:53 -07:00
|
|
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
2019-08-15 08:19:16 -07:00
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/simapp"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
// returns context and app with params set on account keeper
|
|
|
|
func createTestApp(isCheckTx bool) (*simapp.SimApp, sdk.Context) {
|
|
|
|
app := simapp.Setup(isCheckTx)
|
2020-08-14 10:58:53 -07:00
|
|
|
ctx := app.BaseApp.NewContext(isCheckTx, tmproto.Header{})
|
2019-08-15 08:19:16 -07:00
|
|
|
app.AccountKeeper.SetParams(ctx, authtypes.DefaultParams())
|
|
|
|
|
|
|
|
return app, ctx
|
|
|
|
}
|