Skip to content

Commit

Permalink
Maybe fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed May 9, 2024
1 parent ee28100 commit 46547fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ require (
)

// This version points to Lightclient's prague-devnet-0 branch.
//nolint:gomoddirectives
replace github.com/ethereum/go-ethereum => github.com/lightclient/go-ethereum v1.10.10-0.20240429213339-9b7958ba0063
4 changes: 4 additions & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func DecodeJSON(r io.Reader, dst any) error {
}

// PayloadToPayloadHeader converts an ExecutionPayload to ExecutionPayloadHeader
//
// nolint:cyclop

Check failure on line 109 in utils/utils.go

View workflow job for this annotation

GitHub Actions / Lint

directive `// nolint:cyclop` should be written without leading space as `//nolint:cyclop` (nolintlint)
func PayloadToPayloadHeader(payload *api.VersionedExecutionPayload) (*api.VersionedExecutionPayloadHeader, error) {
if payload == nil {
return nil, ErrNilPayload
Expand Down Expand Up @@ -341,6 +343,8 @@ func deriveWithdrawalRequestsRoot(withdrawalRequests []*electra.ExecutionLayerWi
}

// ComputeBlockHash computes the block hash for a given execution payload.
//
// nolint:cyclop

Check failure on line 347 in utils/utils.go

View workflow job for this annotation

GitHub Actions / Lint

directive `// nolint:cyclop` should be written without leading space as `//nolint:cyclop` (nolintlint)
func ComputeBlockHash(payload *api.VersionedExecutionPayload, parentBeaconRoot *phase0.Root) (phase0.Hash32, error) {
switch payload.Version {
case spec.DataVersionBellatrix:
Expand Down

0 comments on commit 46547fb

Please sign in to comment.