From e34d298b8e642ebcb69874fc7bb38c6ef02b897c Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Fri, 21 Apr 2023 23:25:54 +0200 Subject: [PATCH] Fix test --- commonspace/payloads.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commonspace/payloads.go b/commonspace/payloads.go index 372d3ebd..b54ec22b 100644 --- a/commonspace/payloads.go +++ b/commonspace/payloads.go @@ -213,7 +213,7 @@ func validateSpaceStorageCreatePayload(payload spacestorage.SpaceStorageCreatePa func ValidateSpaceHeader(rawHeaderWithId *spacesyncproto.RawSpaceHeaderWithId, identity crypto.PubKey) (err error) { sepIdx := strings.Index(rawHeaderWithId.Id, ".") if sepIdx == -1 { - err = objecttree.ErrIncorrectCid + err = spacestorage.ErrIncorrectSpaceHeader return } if !cidutil.VerifyCid(rawHeaderWithId.RawHeader, rawHeaderWithId.Id[:sepIdx]) {