Skip to content

Commit

Permalink
refactor(mint): audit (#16760)
Browse files Browse the repository at this point in the history
(cherry picked from commit ec789b7)

# Conflicts:
#	x/mint/keeper/msg_server.go
  • Loading branch information
facundomedica authored and mergify[bot] committed Jun 30, 2023
1 parent cf2dca6 commit fb414b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/mint/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import (

"cosmossdk.io/errors"

<<<<<<< HEAD
sdk "github.com/cosmos/cosmos-sdk/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
=======
>>>>>>> ec789b739 (refactor(mint): audit (#16760))
"github.com/cosmos/cosmos-sdk/x/mint/types"
)

Expand All @@ -25,7 +28,7 @@ func NewMsgServerImpl(k Keeper) types.MsgServer {
}

// UpdateParams updates the params.
func (ms msgServer) UpdateParams(goCtx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
func (ms msgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) {
if ms.authority != msg.Authority {
return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.authority, msg.Authority)
}
Expand All @@ -34,7 +37,6 @@ func (ms msgServer) UpdateParams(goCtx context.Context, msg *types.MsgUpdatePara
return nil, err
}

ctx := sdk.UnwrapSDKContext(goCtx)
if err := ms.Params.Set(ctx, msg.Params); err != nil {
return nil, err
}
Expand Down

0 comments on commit fb414b6

Please sign in to comment.