Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Sep 6, 2024
1 parent d1cdfcf commit ffefbac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions x/bank/proto/cosmos/bank/v2/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ service Msg {
// MsgUpdateParams is the Msg/UpdateParams request type.
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "cosmos-sdk/x/bank/v2/MsgUpdateParams";

// authority is the address that controls the module (defaults to x/gov unless overwritten).
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
4 changes: 2 additions & 2 deletions x/bank/v2/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// InitGenesis initializes the bank/v2 module genesis state.
func (k *Keeper) InitGenesis(ctx context.Context, state *types.GenesisState) error {
if err := k.params.Set(ctx, state.Params); err != nil {
return fmt.Errorf("failed to set params: %v", err)
return fmt.Errorf("failed to set params: %w", err)
}

return nil
Expand All @@ -19,7 +19,7 @@ func (k *Keeper) InitGenesis(ctx context.Context, state *types.GenesisState) err
func (k *Keeper) ExportGenesis(ctx context.Context) (*types.GenesisState, error) {
params, err := k.params.Get(ctx)
if err != nil {
return nil, fmt.Errorf("failed to get params: %v", err)
return nil, fmt.Errorf("failed to get params: %w", err)
}

return types.NewGenesisState(params), nil
Expand Down
21 changes: 11 additions & 10 deletions x/bank/v2/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 ffefbac

Please sign in to comment.