From 296e83d5c5d9983d3da33f336a5943e508f10a7b Mon Sep 17 00:00:00 2001 From: healthykim Date: Fri, 24 Oct 2025 17:15:24 +0900 Subject: [PATCH] fix: fix partial lint error --- core/types/tx_blob.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/types/tx_blob.go b/core/types/tx_blob.go index ad4cc58719..c71630c6db 100644 --- a/core/types/tx_blob.go +++ b/core/types/tx_blob.go @@ -210,15 +210,15 @@ func (c *BlobTxCellSidecar) ValidateBlobCommitmentHashes(hashes []common.Hash) e // ToV1 converts the BlobSidecar to version 1, attaching the cell proofs. // This function only available when we can recover the original blob with given cells // TODO: duplication -func (sc *BlobTxCellSidecar) ToV1() error { - if sc.Version == BlobSidecarVersion1 { +func (c *BlobTxCellSidecar) ToV1() error { + if c.Version == BlobSidecarVersion1 { return nil } - blobs, err := kzg4844.RecoverBlobs(sc.Cells, sc.Custody.Indices()) + blobs, err := kzg4844.RecoverBlobs(c.Cells, c.Custody.Indices()) if err != nil { return err } - if sc.Version == BlobSidecarVersion0 { + if c.Version == BlobSidecarVersion0 { proofs := make([]kzg4844.Proof, 0, len(blobs)*kzg4844.CellProofsPerBlob) for _, blob := range blobs { cellProofs, err := kzg4844.ComputeCellProofs(&blob) @@ -227,8 +227,8 @@ func (sc *BlobTxCellSidecar) ToV1() error { } proofs = append(proofs, cellProofs...) } - sc.Version = BlobSidecarVersion1 - sc.Proofs = proofs + c.Version = BlobSidecarVersion1 + c.Proofs = proofs } return nil }