From 139d3ceed3d21e9688e66f6e0c066e43412da284 Mon Sep 17 00:00:00 2001 From: maskpp Date: Sun, 13 Jul 2025 17:54:27 +0800 Subject: [PATCH] check by version --- core/types/tx_blob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/tx_blob.go b/core/types/tx_blob.go index 17c4379dc7..808ad310cb 100644 --- a/core/types/tx_blob.go +++ b/core/types/tx_blob.go @@ -76,7 +76,7 @@ func (sc *BlobTxSidecar) BlobHashes() []common.Hash { // CellProofsAt returns the cell proofs for blob with index idx. func (sc *BlobTxSidecar) CellProofsAt(idx int) []kzg4844.Proof { - if len(sc.Proofs) == len(sc.Blobs)*kzg4844.CellProofsPerBlob { + if sc.Version == 1 { index := idx * kzg4844.CellProofsPerBlob return sc.Proofs[index : index+kzg4844.CellProofsPerBlob] }