Skip to content

Commit

Permalink
Update x/cronos/keeper/msg_server.go
Browse files Browse the repository at this point in the history
Signed-off-by: mmsqe <mavis@crypto.com>
  • Loading branch information
mmsqe authored Dec 11, 2023
1 parent d7bd921 commit a30591f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/cronos/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (k msgServer) UpdatePermissions(goCtx context.Context, msg *types.MsgUpdate
admin := k.Keeper.GetParams(ctx).CronosAdmin
// if admin is empty, no sender could be equal to it
if admin != msg.From {
return nil, errors.Wrap(sdkerrors.ErrInvalidAddress, "msg sender is not authorized")
return nil, errors.Wrap(sdkerrors.ErrUnauthorized, "msg sender is not authorized")

Check warning on line 116 in x/cronos/keeper/msg_server.go

View check run for this annotation

Codecov / codecov/patch

x/cronos/keeper/msg_server.go#L116

Added line #L116 was not covered by tests
}
acc, err := sdk.AccAddressFromBech32(msg.Address)
if err != nil {
Expand Down

0 comments on commit a30591f

Please sign in to comment.