22 lines
467 B
Go
22 lines
467 B
Go
|
package requests
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
|
||
|
"github.com/status-im/status-go/eth-node/types"
|
||
|
)
|
||
|
|
||
|
var ErrDismissLatestContactRequestForContactInvalidID = errors.New("dismiss-latest-contact-request-for-contact: invalid id")
|
||
|
|
||
|
type DismissLatestContactRequestForContact struct {
|
||
|
ID types.HexBytes `json:"id"`
|
||
|
}
|
||
|
|
||
|
func (a *DismissLatestContactRequestForContact) Validate() error {
|
||
|
if len(a.ID) == 0 {
|
||
|
return ErrDismissLatestContactRequestForContactInvalidID
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|