From 3f774d2c32fbde4cacd6f77fedd9c950c5511a7f Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Mon, 7 Oct 2024 23:07:35 +0800 Subject: [PATCH] fix --- encoding/codecv0.go | 2 +- encoding/codecv2.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/encoding/codecv0.go b/encoding/codecv0.go index 4b670b9..4a87738 100644 --- a/encoding/codecv0.go +++ b/encoding/codecv0.go @@ -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 diff --git a/encoding/codecv2.go b/encoding/codecv2.go index af686ce..dd8a1b8 100644 --- a/encoding/codecv2.go +++ b/encoding/codecv2.go @@ -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