diff --git a/x/authority/keeper/msg_server_remove_authorization.go b/x/authority/keeper/msg_server_remove_authorization.go index 310f970b7f..f84e2fdffe 100644 --- a/x/authority/keeper/msg_server_remove_authorization.go +++ b/x/authority/keeper/msg_server_remove_authorization.go @@ -28,10 +28,7 @@ func (k msgServer) RemoveAuthorization( // check if the authorization list exists, we can return early if there is no list. authorizationList, found := k.GetAuthorizationList(ctx) if !found { - return nil, errorsmod.Wrap( - types.ErrAuthorizationListNotFound, - "authorization list not found", - ) + return nil, types.ErrAuthorizationListNotFound } // check if the authorization exists, we can return early if the authorization does not exist. diff --git a/x/authority/types/authorizations.go b/x/authority/types/authorizations.go index 003fac8124..d500e25ee5 100644 --- a/x/authority/types/authorizations.go +++ b/x/authority/types/authorizations.go @@ -34,6 +34,8 @@ var ( "/zetachain.zetacore.fungible.MsgUpdateContractBytecode", "/zetachain.zetacore.fungible.MsgUpdateSystemContract", "/zetachain.zetacore.observer.MsgUpdateObserver", + "/zetachain.zetacore.authority.MsgAddAuthorization", + "/zetachain.zetacore.authority.MsgRemoveAuthorization", } // EmergencyPolicyMessages keeps track of the message URLs that can, by default, only be executed by emergency policy address EmergencyPolicyMessages = []string{