Skip to content

Commit

Permalink
add comments (see comment in #15793)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Apr 11, 2023
1 parent 41a9c1d commit ccf4d7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions x/auth/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

// SetParams sets the auth module's parameters.
// NOTE: This method performs no validation of the parameters.
func (ak AccountKeeper) SetParams(ctx context.Context, params types.Params) error {
store := ak.storeService.OpenKVStore(ctx)
bz := ak.cdc.MustMarshal(&params)
Expand Down
3 changes: 2 additions & 1 deletion x/distribution/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) {
return params
}

// SetParams sets the distribution parameters to the param space.
// SetParams sets the distribution parameters.
// NOTE: This method performs no validation of the parameters.
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error {
store := ctx.KVStore(k.storeKey)
bz, err := k.cdc.Marshal(&params)
Expand Down
1 change: 1 addition & 0 deletions x/gov/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
)

// SetParams sets the gov module's parameters.
// NOTE: This method performs no validation of the parameters.
func (k Keeper) SetParams(ctx sdk.Context, params v1.Params) error {
store := ctx.KVStore(k.storeKey)
bz, err := k.cdc.Marshal(&params)
Expand Down

0 comments on commit ccf4d7c

Please sign in to comment.