Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Mar 4, 2024
1 parent 8c12991 commit 3cbdf5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/authz/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (k Keeper) Grant(ctx context.Context, msg *authz.MsgGrant) (*authz.MsgGrant
}

t := authorization.MsgTypeURL()
if k.environment.RouterService.MessageRouterService().CanInvoke(ctx, t) == nil {
if err := k.environment.RouterService.MessageRouterService().CanInvoke(ctx, t); err != nil {
return nil, sdkerrors.ErrInvalidType.Wrapf("%s doesn't exist", t)
}

Expand Down

1 comment on commit 3cbdf5a

@julienrbrt
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A weird setting let me push directly to main, while it wasn't intended. The setting has been changed to prevent that.

Please sign in to comment.