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

24 lines
467 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
}
func (u *CheckAllCommunityChannelsPermissions) Validate() error {
if len(u.CommunityID) == 0 {
return ErrCheckAllCommunityChannelsPermissionsInvalidID
}
return nil
}