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 {