Skip to content

Commit

Permalink
add new authorizations to list
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Jun 4, 2024
1 parent 844b146 commit 5b314a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions x/authority/keeper/msg_server_remove_authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions x/authority/types/authorizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 5b314a6

Please sign in to comment.