diff --git a/proto/zetachain/zetacore/authority/authorization.proto b/proto/zetachain/zetacore/authority/authorization.proto index 3a319c3837..914b6b7528 100644 --- a/proto/zetachain/zetacore/authority/authorization.proto +++ b/proto/zetachain/zetacore/authority/authorization.proto @@ -6,7 +6,8 @@ import "zetachain/zetacore/authority/policies.proto"; option go_package = "github.com/zeta-chain/zetacore/x/authority/types"; -// Authorization defines the authorization required to access use a message which needs special permissions +// Authorization defines the authorization required to access use a message +// which needs special permissions message Authorization { // The URL of the message that needs to be authorized string msg_url = 1; diff --git a/typescript/zetachain/zetacore/authority/authorization_pb.d.ts b/typescript/zetachain/zetacore/authority/authorization_pb.d.ts index cf4819d1aa..96178864ea 100644 --- a/typescript/zetachain/zetacore/authority/authorization_pb.d.ts +++ b/typescript/zetachain/zetacore/authority/authorization_pb.d.ts @@ -8,6 +8,9 @@ import { Message, proto3 } from "@bufbuild/protobuf"; import type { PolicyType } from "./policies_pb.js"; /** + * Authorization defines the authorization required to access use a message + * which needs special permissions + * * @generated from message zetachain.zetacore.authority.Authorization */ export declare class Authorization extends Message { diff --git a/x/authority/types/authorization.pb.go b/x/authority/types/authorization.pb.go index c8cce069e1..d8c5fa9292 100644 --- a/x/authority/types/authorization.pb.go +++ b/x/authority/types/authorization.pb.go @@ -23,6 +23,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Authorization defines the authorization required to access use a message +// which needs special permissions type Authorization struct { // The URL of the message that needs to be authorized MsgUrl string `protobuf:"bytes,1,opt,name=msg_url,json=msgUrl,proto3" json:"msg_url,omitempty"` diff --git a/x/authority/types/authorizations.go b/x/authority/types/authorizations.go index 4d590d9d4d..4de2c7d17b 100644 --- a/x/authority/types/authorizations.go +++ b/x/authority/types/authorizations.go @@ -47,7 +47,10 @@ var ( // DefaultAuthorizationsList list is the list of authorizations that presently exist in the system. // This is the minimum set of authorizations that are required to be set when the authorization table is deployed func DefaultAuthorizationsList() AuthorizationList { - authorizations := make([]Authorization, len(OperationPolicyMessages)+len(AdminPolicyMessages)+len(EmergencyPolicyMessages)) + authorizations := make( + []Authorization, + len(OperationPolicyMessages)+len(AdminPolicyMessages)+len(EmergencyPolicyMessages), + ) index := 0 for _, msgURL := range OperationPolicyMessages { authorizations[index] = Authorization{