diff --git a/blob/service.go b/blob/service.go index ee3b7e5cac..75500ea441 100644 --- a/blob/service.go +++ b/blob/service.go @@ -235,7 +235,7 @@ func (s *Service) GetProof( }} _, proof, err = s.retrieve(ctx, height, namespace, sharesParser) - return proof, nil + return proof, err } // GetAll returns all blobs under the given namespaces at the given height. diff --git a/blob/service_test.go b/blob/service_test.go index 80f2e54b0a..defdac2312 100644 --- a/blob/service_test.go +++ b/blob/service_test.go @@ -361,6 +361,19 @@ func TestBlobService_Get(t *testing.T) { assert.NoError(t, err) }, }, + { + name: "err during proof request", + doFn: func() (interface{}, error) { + proof, err := service.GetProof(ctx, 1, + blobsWithDiffNamespaces[0].Namespace(), + blobsWithDiffNamespaces[1].Commitment, + ) + return proof, err + }, + expectedResult: func(_ interface{}, err error) { + require.Error(t, err) + }, + }, { name: "marshal proof", doFn: func() (interface{}, error) {