status-go/protocol/requests/cancel_request_to_join_comm...

22 lines
421 B
Go
Raw Permalink Normal View History

package requests
import (
"errors"
"github.com/status-im/status-go/eth-node/types"
)
var ErrCancelRequestToJoinCommunityInvalidID = errors.New("cancel-request-to-join-community: invalid id")
type CancelRequestToJoinCommunity struct {
ID types.HexBytes `json:"id"`
}
func (j *CancelRequestToJoinCommunity) Validate() error {
if len(j.ID) == 0 {
return ErrCancelRequestToJoinCommunityInvalidID
}
return nil
}