Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iKapitonau committed Dec 24, 2024
1 parent 738f63c commit d2142af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions x/compute/internal/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState) error
if keeper.peekAutoIncrementID(ctx, types.KeyLastInstanceID) <= uint64(maxContractID) {
return errorsmod.Wrapf(types.ErrInvalid, "seq %s must be greater %d ", string(types.KeyLastInstanceID), maxContractID)
}
keeper.SetParams(ctx, data.Params)
err := keeper.SetParams(ctx, data.Params)

return nil
return err
}

// ExportGenesis returns a GenesisState for a given context and keeper.
Expand Down
4 changes: 2 additions & 2 deletions x/compute/internal/keeper/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ func (m Migrator) Migrate5to6(ctx sdk.Context) error {
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)
err = store.Set(types.ParamsKey, bz)

return nil
return err
}

const progressPartSize = 1000
Expand Down
4 changes: 2 additions & 2 deletions x/compute/internal/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ func (k *Keeper) SetParams(ctx sdk.Context, p types.Params) error {

store := k.storeService.OpenKVStore(ctx)
bz := k.cdc.MustMarshal(&p)
store.Set(types.ParamsKey, bz)
err := store.Set(types.ParamsKey, bz)

return nil
return err
}

func (k *Keeper) GetParams(ctx sdk.Context) (params types.Params) {
Expand Down
2 changes: 1 addition & 1 deletion x/compute/internal/keeper/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ func CreateTestInput(t *testing.T, isCheckTx bool, supportedFeatures string, enc
random := make([]byte, 32)
_, _ = rand.Read(random)
keeper.SetRandomSeed(ctx, random)
keeper.SetParams(ctx, wasmtypes.DefaultParams())
_ = keeper.SetParams(ctx, wasmtypes.DefaultParams())

govSubSp, _ := paramsKeeper.GetSubspace(govtypes.ModuleName)

Expand Down

0 comments on commit d2142af

Please sign in to comment.