status-go/protocol/requests/check_all_community_channel...

25 lines
508 B
Go
Raw Normal View History

package requests
import (
"errors"
"github.com/status-im/status-go/eth-node/types"
)
var (
ErrCheckAllCommunityChannelsPermissionsInvalidID = errors.New("check-community-channel-permissions: invalid id")
)
type CheckAllCommunityChannelsPermissions struct {
CommunityID types.HexBytes
Addresses []string `json:"addresses"`
}
func (u *CheckAllCommunityChannelsPermissions) Validate() error {
if len(u.CommunityID) == 0 {
return ErrCheckAllCommunityChannelsPermissionsInvalidID
}
return nil
}