applying feedback

This commit is contained in:
Gabriel mermelstein 2025-01-03 10:13:35 +01:00
parent 89d82d6ffb
commit db40f1c5be
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -730,7 +730,7 @@ func (n *WakuNode) RelaySubscribe(pubsubTopic string) error {
func (n *WakuNode) RelayAddProtectedShard(clusterId uint16, shardId uint16, pubkey *ecdsa.PublicKey) error {
if pubkey == nil {
return nil // Nothing to do here
return errors.New("error WakuRelayAddProtectedShard: pubkey can't be nil")
}
keyHexStr := hex.EncodeToString(crypto.FromECDSAPub(pubkey))