Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulghangas committed Oct 31, 2022
1 parent 1252cf4 commit 8f00dc9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions testutil/nullify/nullify.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package nullify provides methods to init nil values structs for test assertion.
// Package nullify provides methods to init nil value structs for test assertion.
package nullify

import (
Expand All @@ -13,8 +13,8 @@ var (
coinsType = reflect.TypeOf(sdk.Coins{})
)

// Fill analyze all struct fields and slices with
// reflection and initialize the nil and empty slices,
// Fill analyzes all struct fields and slices with
// reflection and initializes the nil and empty slices,
// structs, and pointers.
func Fill(x interface{}) interface{} {
v := reflect.Indirect(reflect.ValueOf(x))
Expand Down
4 changes: 2 additions & 2 deletions x/payment/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Keeper struct {
cdc codec.BinaryCodec
storeKey storetypes.StoreKey
memKey storetypes.StoreKey
paramstore paramtypes.Subspace
paramStore paramtypes.Subspace
}

func NewKeeper(
Expand All @@ -37,7 +37,7 @@ func NewKeeper(
cdc: cdc,
storeKey: storeKey,
memKey: memKey,
paramstore: ps,
paramStore: ps,
}
}

Expand Down
8 changes: 4 additions & 4 deletions x/payment/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

// GetParams get all parameters as types.Params
// GetParams gets all parameters as types.Params
func (k Keeper) GetParams(ctx sdk.Context) types.Params {
return types.NewParams(
k.MinSquareSize(ctx),
Expand All @@ -15,17 +15,17 @@ func (k Keeper) GetParams(ctx sdk.Context) types.Params {

// SetParams set the params
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
k.paramstore.SetParamSet(ctx, &params)
k.paramStore.SetParamSet(ctx, &params)
}

// MinSquareSize returns the MinSquareSize param
func (k Keeper) MinSquareSize(ctx sdk.Context) (res uint32) {
k.paramstore.Get(ctx, types.KeyMinSquareSize, &res)
k.paramStore.Get(ctx, types.KeyMinSquareSize, &res)
return
}

// MaxSquareSize returns the MaxSquareSize param
func (k Keeper) MaxSquareSize(ctx sdk.Context) (res uint32) {
k.paramstore.Get(ctx, types.KeyMaxSquareSize, &res)
k.paramStore.Get(ctx, types.KeyMaxSquareSize, &res)
return
}
4 changes: 2 additions & 2 deletions x/payment/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
DefaultMaxSquareSize uint32 = 128
)

// ParamKeyTable the param key table for the payment module
// ParamKeyTable returns the param key table for the payment module
func ParamKeyTable() paramtypes.KeyTable {
return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
Expand All @@ -43,7 +43,7 @@ func DefaultParams() Params {
)
}

// ParamSetPairs gets the list of param key-pair values
// ParamSetPairs gets the list of param key-value pairs
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(KeyMinSquareSize, &p.MinSquareSize, validateMinSquareSize),
Expand Down

0 comments on commit 8f00dc9

Please sign in to comment.