From 83ed3e5ede010b45ba5c04f93c4f56a98f7a8e17 Mon Sep 17 00:00:00 2001 From: mprakhov Date: Fri, 9 Jun 2023 10:51:16 +0200 Subject: [PATCH] fix: allow to set token permission as a private --- protocol/requests/create_community_token_permission_request.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/requests/create_community_token_permission_request.go b/protocol/requests/create_community_token_permission_request.go index 1c1068f88..b6c445bcb 100644 --- a/protocol/requests/create_community_token_permission_request.go +++ b/protocol/requests/create_community_token_permission_request.go @@ -21,6 +21,7 @@ type CreateCommunityTokenPermission struct { CommunityID types.HexBytes `json:"communityId"` Type protobuf.CommunityTokenPermission_Type `json:"type"` TokenCriteria []*protobuf.TokenCriteria `json:"tokenCriteria"` + IsPrivate bool `json:"isPrivate"` } func (p *CreateCommunityTokenPermission) Validate() error { @@ -54,5 +55,6 @@ func (p *CreateCommunityTokenPermission) ToCommunityTokenPermission() protobuf.C return protobuf.CommunityTokenPermission{ Type: p.Type, TokenCriteria: p.TokenCriteria, + IsPrivate: p.IsPrivate, } }