Skip to content

Commit

Permalink
made changes as per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-kanna committed Dec 11, 2023
1 parent 640f859 commit 3929f28
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ func New(
evmmoduletypes.ModuleName,
wasmtypes.ModuleName,
// evmmoduletypes.ModuleName,
// // gravitymoduletypes.ModuleName,
// // treasurymoduletypes.ModuleName,
// gravitymoduletypes.ModuleName,
// treasurymoduletypes.ModuleName,
ibctransfertypes.ModuleName,
ibcexported.ModuleName,
icatypes.ModuleName,
Expand Down Expand Up @@ -847,7 +847,7 @@ func New(
evmmoduletypes.ModuleName,
wasmtypes.ModuleName,
// evmmoduletypes.ModuleName,
// // gravitymoduletypes.ModuleName,
// gravitymoduletypes.ModuleName,
ibctransfertypes.ModuleName,
ibcexported.ModuleName,
icatypes.ModuleName,
Expand Down
1 change: 0 additions & 1 deletion app/app_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ var DefaultConsensusParams = &tmproto.ConsensusParams{

func NewTestApp(t testing, isCheckTx bool) TestApp {
db := dbm.NewMemDB()
encCfg := MakeEncodingConfig()

oldVersion := version.Version
version.Version = "v5.1.6"
Expand Down
1 change: 0 additions & 1 deletion cmd/palomad/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func NewRootCmd() *cobra.Command {
tempApp := palomaapp.New(cosmoslog.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(os.TempDir()))
encCfg := palomaapp.MakeEncodingConfig()

tempApp := palomaapp.New(cosmoslog.NewNopLogger(), db.NewMemDB(), io.MultiWriter(), true, encCfg, db.OptionsMap{})
initClientCtx := client.Context{}.
WithCodec(encCfg.Codec).
WithInterfaceRegistry(encCfg.InterfaceRegistry).
Expand Down
4 changes: 2 additions & 2 deletions x/valset/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewKeeper(
minimumPigeonVersion: minimumPigeonVersion,
powerReduction: powerReduction,
}
k.ider = keeperutil.NewIDGenerator(keeperutil.StoreGetterFn(func(ctx sdk.Context) storetypes.KVStore {
k.ider = keeperutil.NewIDGenerator(keeperutil.StoreGetterFn(func(ctx context.Context) storetypes.KVStore {
store := runtime.KVStoreAdapter(k.storeKey.OpenKVStore(ctx))
return prefix.NewStore(store, []byte("IDs"))
}), nil)
Expand Down Expand Up @@ -533,7 +533,7 @@ func (k Keeper) IsJailed(ctx context.Context, val sdk.ValAddress) bool {
func (k Keeper) Jail(ctx context.Context, valAddr sdk.ValAddress, reason string) error {
val, err := k.staking.Validator(ctx, valAddr)
if err != nil {
panic(err)
return err
}
if val == nil {
return ErrValidatorWithAddrNotFound.Format(valAddr)
Expand Down
1 change: 0 additions & 1 deletion x/valset/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
)

var (
_ module.AppModuleBasic = AppModuleBasic{}
_ module.AppModuleBasic = AppModuleBasic{}
_ module.HasServices = AppModule{}
_ module.HasInvariants = AppModule{}
Expand Down

0 comments on commit 3929f28

Please sign in to comment.