Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: unify the blob.Proof and the CommitmentProof #3821

Open
wants to merge 5 commits into
base: feature_branch_blob_proof
Choose a base branch
from

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Oct 7, 2024

Closes #3516 and #3582

Note: added couple notes for reviewers concerning the error handling

@rach-id rach-id self-assigned this Oct 7, 2024
@rach-id rach-id changed the base branch from main to feature_branch_blob_proof October 7, 2024 11:07
@github-actions github-actions bot added the external Issues created by non node team members label Oct 7, 2024
go.mod Outdated Show resolved Hide resolved
},
expectedResult: func(res interface{}, err error) {
require.NoError(t, err)
// Question for reviwers: for the case of included, it's here made not to return an error
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -289,7 +288,9 @@ func TestBlobService_Get(t *testing.T) {
},
expectedResult: func(res interface{}, err error) {
require.Error(t, err)
require.ErrorIs(t, err, ErrInvalidProof)
// Question for reviewers: same for here, we're returning exactly, ErrInvalidProof.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rach-id rach-id changed the title Unify proofs feat!: unify the blob.Proof and the CommitmentProof Oct 7, 2024
@rach-id rach-id marked this pull request as draft October 7, 2024 11:15
@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 62.37624% with 38 lines in your changes missing coverage. Please review.

Please upload report for BASE (feature_branch_blob_proof@52bb142). Learn more about missing BASE report.

Files with missing lines Patch % Lines
blob/blob.go 65.71% 17 Missing and 7 partials ⚠️
nodebuilder/share/share.go 0.00% 10 Missing ⚠️
blob/service.go 89.47% 1 Missing and 1 partial ⚠️
nodebuilder/share/mocks/api.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                     Coverage Diff                      @@
##             feature_branch_blob_proof    #3821   +/-   ##
============================================================
  Coverage                             ?   46.83%           
============================================================
  Files                                ?      313           
  Lines                                ?    18092           
  Branches                             ?        0           
============================================================
  Hits                                 ?     8474           
  Misses                               ?     8602           
  Partials                             ?     1016           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rach-id rach-id marked this pull request as ready for review October 7, 2024 11:47
@cristaloleg cristaloleg added the kind:feat Attached to feature PRs label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

blob: Unify GetProof and GetCommitmentProof
3 participants