Skip to content

Commit

Permalink
Merge branch 'main' into fix/cometbft-exit-err
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Nov 14, 2024
2 parents f603218 + fa01196 commit 505aa07
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ func NewBlobV1(namespace libshare.Namespace, data, signer []byte) (*Blob, error)

// NewBlob constructs a new blob from the provided Namespace, data, signer, and share version.
func NewBlob(shareVersion uint8, namespace libshare.Namespace, data, signer []byte) (*Blob, error) {
if len(data) == 0 || len(data) > appconsts.DefaultMaxBytes {
return nil, fmt.Errorf("blob data must be > 0 && <= %d, but it was %d bytes", appconsts.DefaultMaxBytes, len(data))
}

if err := namespace.ValidateForBlob(); err != nil {
return nil, fmt.Errorf("invalid user namespace: %w", err)
}
Expand Down

0 comments on commit 505aa07

Please sign in to comment.