From 811fe46693e1a8cb13beee496feaa5a2ef4bcbcb Mon Sep 17 00:00:00 2001 From: WaDadidou Date: Wed, 18 Dec 2024 19:37:41 -0500 Subject: [PATCH] fix(launchpad): uncomment VerifyPinned --- go/pkg/launchpad/service.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/go/pkg/launchpad/service.go b/go/pkg/launchpad/service.go index 0ebda1a94..fa8538771 100644 --- a/go/pkg/launchpad/service.go +++ b/go/pkg/launchpad/service.go @@ -73,14 +73,14 @@ func (s *Launchpad) UploadMetadatas(ctx context.Context, req *launchpadpb.Upload } // Check pinning - // pinningSrv, err := NewPinningService(Pinata, pinataJwt) - // if err != nil { - // return nil, errors.Wrap(err, "failed to get pinning service") - // } - - // if _, err := pinningSrv.VerifyPinned(pinnedCIDs...); err != nil { - // return nil, errors.Wrap(err, "failed to verify pinned images") - // } + pinningSrv, err := NewPinningService(Pinata, pinataJwt) + if err != nil { + return nil, errors.Wrap(err, "failed to get pinning service") + } + + if _, err := pinningSrv.VerifyPinned(pinnedCIDs...); err != nil { + return nil, errors.Wrap(err, "failed to verify pinned images") + } // Check if all files have been pinned correctly for _, metadataItem := range req.Metadatas {