mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
27730057d0
* Outgoing contact requests * Test fix * Test fix * Fixes * Bugfixes * Bugfixes * Almost there * Removed the activity center notification * Test update * Almost ready * Fixes * Fixes
22 lines
398 B
Go
22 lines
398 B
Go
package requests
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
)
|
|
|
|
var ErrRetractContactRequestInvalidContactID = errors.New("retract-contact-request: invalid id")
|
|
|
|
type RetractContactRequest struct {
|
|
ID types.HexBytes `json:"id"`
|
|
}
|
|
|
|
func (a *RetractContactRequest) Validate() error {
|
|
if len(a.ID) == 0 {
|
|
return ErrRetractContactRequestInvalidContactID
|
|
}
|
|
|
|
return nil
|
|
}
|