Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Apr 8, 2024
1 parent 3d95475 commit 116a302
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions common/types_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (b *DenebBlockValidationRequest) MarshalSSZTo(buf []byte) (dst []byte, err
b.Message = new(builderApiV1.BidTrace)
}
if dst, err = b.Message.MarshalSSZTo(dst); err != nil {
return
return nil, err
}

// Offset (1) 'ExecutionPayload'
Expand All @@ -327,7 +327,6 @@ func (b *DenebBlockValidationRequest) MarshalSSZTo(buf []byte) (dst []byte, err
if b.BlobsBundle == nil {
b.BlobsBundle = new(builderApiDeneb.BlobsBundle)
}
offset += b.BlobsBundle.SizeSSZ()

// Field (3) 'Signature'
dst = append(dst, b.Signature[:]...)
Expand All @@ -340,15 +339,15 @@ func (b *DenebBlockValidationRequest) MarshalSSZTo(buf []byte) (dst []byte, err

// Field (1) 'ExecutionPayload'
if dst, err = b.ExecutionPayload.MarshalSSZTo(dst); err != nil {
return
return nil, err
}

// Field (2) 'BlobsBundle'
if dst, err = b.BlobsBundle.MarshalSSZTo(dst); err != nil {
return
return nil, err
}

return
return dst, nil
}

type VersionedSubmitBlockRequest struct {
Expand Down

0 comments on commit 116a302

Please sign in to comment.