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

Commit

Permalink
feat: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Feb 10, 2024
1 parent edf4b1a commit 5c6d0fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions driver/chain_syncer/calldata/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ func (s *Syncer) onBlockProposed(
"blockID", event.BlockId,
"hint", hint,
"invalidTxIndex", invalidTxIndex,
"bytes", len(txListBytes),
)

l1Origin := &rawdb.L1Origin{
Expand Down
6 changes: 3 additions & 3 deletions driver/txlist_fetcher/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (d *BlobFetcher) Fetch(
"blobHash", common.Bytes2Hex(meta.BlobHash[:]),
)

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

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

Expand Down

0 comments on commit 5c6d0fe

Please sign in to comment.