Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 5c6d0fe

Browse files
committed
feat: fix lint errors
1 parent edf4b1a commit 5c6d0fe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

driver/chain_syncer/calldata/syncer.go

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ func (s *Syncer) onBlockProposed(
261261
"blockID", event.BlockId,
262262
"hint", hint,
263263
"invalidTxIndex", invalidTxIndex,
264+
"bytes", len(txListBytes),
264265
)
265266

266267
l1Origin := &rawdb.L1Origin{

driver/txlist_fetcher/blob.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (d *BlobFetcher) Fetch(
4949
"blobHash", common.Bytes2Hex(meta.BlobHash[:]),
5050
)
5151

52-
if kZGToVersionedHash(
52+
if KZGToVersionedHash(
5353
kzg4844.Commitment(common.FromHex(sidecar.KzgCommitment)),
5454
) == common.BytesToHash(meta.BlobHash[:]) {
5555
return common.Hex2Bytes(sidecar.Blob), nil
@@ -59,8 +59,8 @@ func (d *BlobFetcher) Fetch(
5959
return nil, errSidecarNotFound
6060
}
6161

62-
// kZGToVersionedHash implements kzg_to_versioned_hash from EIP-4844
63-
func kZGToVersionedHash(kzg kzg4844.Commitment) common.Hash {
62+
// KZGToVersionedHash implements kzg_to_versioned_hash from EIP-4844
63+
func KZGToVersionedHash(kzg kzg4844.Commitment) common.Hash {
6464
h := sha256.Sum256(kzg[:])
6565
h[0] = blobCommitmentVersionKZG
6666

0 commit comments

Comments
 (0)