Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Apr 8, 2024
1 parent 1f058de commit a7325b4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions testutil/simapp/simapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package simapp
import (
"time"

tmdb "github.com/cosmos/cosmos-db"
abci "github.com/cometbft/cometbft/abci/types"
"cosmossdk.io/log"
abci "github.com/cometbft/cometbft/abci/types"
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
tmtypes "github.com/cometbft/cometbft/types"
tmdb "github.com/cosmos/cosmos-db"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"

"github.com/crypto-org-chain/cronos/v2/app"
Expand All @@ -18,13 +18,9 @@ func New(dir string) *app.App {
db := tmdb.NewMemDB()
logger := log.NewNopLogger()

encoding := app.MakeEncodingConfig()

a := app.New(logger, db, nil, true, true, map[int64]bool{}, dir, 0, encoding,
// this line is used by starport scaffolding # stargate/testutil/appArgument
simtestutil.EmptyAppOptions{})
a := app.New(logger, db, nil, true, simtestutil.EmptyAppOptions{})

Check warning on line 21 in testutil/simapp/simapp.go

View check run for this annotation

Codecov / codecov/patch

testutil/simapp/simapp.go#L21

Added line #L21 was not covered by tests
// InitChain updates deliverState which is required when app.NewContext is called
a.InitChain(abci.RequestInitChain{
a.InitChain(&abci.RequestInitChain{

Check warning on line 23 in testutil/simapp/simapp.go

View check run for this annotation

Codecov / codecov/patch

testutil/simapp/simapp.go#L23

Added line #L23 was not covered by tests
ConsensusParams: defaultConsensusParams,
AppStateBytes: []byte("{}"),
})
Expand Down

0 comments on commit a7325b4

Please sign in to comment.