Skip to content

Commit

Permalink
Fixed NewIntegrationApp
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-mena committed May 10, 2024
1 parent 02a5e96 commit b850d71
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions testutil/integration/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

cmtabcitypes "github.com/cometbft/cometbft/abci/types"
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmttypes "github.com/cometbft/cometbft/types"
dbm "github.com/cosmos/cosmos-db"

"cosmossdk.io/core/address"
Expand Down Expand Up @@ -93,13 +94,8 @@ func NewIntegrationApp(
bApp.SetParamStore(consensusParamsKeeper.ParamsStore)
consensusparamtypes.RegisterQueryServer(grpcRouter, consensusParamsKeeper)

_, err := consensusParamsKeeper.SetParams(sdkCtx, &consensusparamtypes.ConsensusMsgParams{
Version: simtestutil.DefaultConsensusParams.Version,
Block: simtestutil.DefaultConsensusParams.Block,
Evidence: simtestutil.DefaultConsensusParams.Evidence,
Validator: simtestutil.DefaultConsensusParams.Validator,
Abci: simtestutil.DefaultConsensusParams.Abci,
})
params := cmttypes.ConsensusParamsFromProto(*simtestutil.DefaultConsensusParams) // This fills up missing param sections
err := consensusParamsKeeper.ParamsStore.Set(sdkCtx, params.ToProto())
if err != nil {
panic(fmt.Errorf("failed to set consensus params: %w", err))
}
Expand Down

0 comments on commit b850d71

Please sign in to comment.