Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Oct 7, 2024
1 parent 0079225 commit 3f774d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion encoding/codecv0.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func (o *DACodecV0) EstimateBatchL1CommitBatchSizeAndBlobSize(b *Batch) (uint64,
// SetCompression enables or disables compression.
func (o *DACodecV0) SetCompression(enable bool) {}

// JSONFromBytes for CodecV1 returns empty values.
// JSONFromBytes for CodecV0 returns empty values.
func (c *DACodecV0) JSONFromBytes(data []byte) ([]byte, error) {
// DACodecV0 doesn't need this, so just return empty values
return nil, nil
Expand Down
2 changes: 1 addition & 1 deletion encoding/codecv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func (o *DACodecV2) computeBatchDataHash(chunks []*Chunk, totalL1MessagePoppedBe
return dataHash, nil
}

// JSONFromBytes for CodecV1 returns empty values.
// JSONFromBytes for CodecV2 returns empty values.
func (c *DACodecV2) JSONFromBytes(data []byte) ([]byte, error) {
// DACodecV2 doesn't need this, so just return empty values
return nil, nil
Expand Down

0 comments on commit 3f774d2

Please sign in to comment.