Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Jul 6, 2022
1 parent be784e2 commit 5545572
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion api/cosmos/app/v1alpha1/config.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions api/cosmos/distribution/v1beta1/genesis.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/cosmos/distribution/v1beta1/tx_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions proto/cosmos/distribution/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ message GenesisState {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

// params defines all the parameters of the module.
Params params = 1 [(gogoproto.nullable) = false];

// fee_pool defines the fee pool at genesis.
Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/distribution/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ service Msg {
rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse);

// UpdateParams defines a governance operation for updating the x/distribution module
// parameters. The authority is hard-coded to the x/gov module account.
// parameters. The authority is defined in the keeper.
//
// Since: cosmos-sdk 0.47
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
Expand Down
5 changes: 4 additions & 1 deletion x/distribution/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error {
}

store := ctx.KVStore(k.storeKey)
bz := k.cdc.MustMarshal(&params)
bz, err := k.cdc.Marshal(&params)
if err != nil {
return err
}
store.Set(types.ParamsKey, bz)

return nil
Expand Down
6 changes: 0 additions & 6 deletions x/distribution/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions x/distribution/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5545572

Please sign in to comment.