Skip to content

Commit ec7d010

Browse files
committed
PrysmaticLabs to OffchainLabs (#21)
* PrysmaticLabs to OffchainLabs * Fix linter
1 parent 6d58201 commit ec7d010

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

http/proxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func (s *Service) Proxy(ctx context.Context, req *http.Request) (*http.Response,
2727
}
2828

2929
// proxy performs an HTTP proxy request using a reverse proxy and returns the response.
30+
//
31+
//nolint:revive
3032
func (s *Service) proxy(ctx context.Context, req *http.Request) (*http.Response, error) {
3133
endpoint := req.URL.Path
3234
query := req.URL.Query().Encode()

mock/beaconblockattestations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (s *Service) BeaconBlockAttestations(ctx context.Context,
3535
}
3636

3737
attestations := make([]*spec.VersionedAttestation, 4)
38-
for i := uint64(0); i < 4; i++ {
38+
for i := range uint64(4) {
3939
aggregationBits := bitfield.NewBitlist(128)
4040
aggregationBits.SetBitAt(i, true)
4141
attestations[i] = &spec.VersionedAttestation{

spec/bellatrix/executionpayload.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ func (e *ExecutionPayload) unpack(data *executionPayloadJSON) error {
289289
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
290290
var baseFeePerGasLEBytes [32]byte
291291
baseFeeLen := len(baseFeePerGasBEBytes)
292-
for i := 0; i < baseFeeLen; i++ {
292+
for i := range baseFeeLen {
293+
//nolint:gosec
293294
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
294295
}
295296
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

spec/bellatrix/executionpayloadheader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ func (e *ExecutionPayloadHeader) unpack(data *executionPayloadHeaderJSON) error
284284
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
285285
var baseFeePerGasLEBytes [32]byte
286286
baseFeeLen := len(baseFeePerGasBEBytes)
287-
for i := 0; i < baseFeeLen; i++ {
287+
for i := range baseFeeLen {
288+
//nolint:gosec
288289
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
289290
}
290291
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

spec/capella/executionpayload.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ func (e *ExecutionPayload) unpack(data *executionPayloadJSON) error {
296296
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
297297
var baseFeePerGasLEBytes [32]byte
298298
baseFeeLen := len(baseFeePerGasBEBytes)
299-
for i := 0; i < baseFeeLen; i++ {
299+
for i := range baseFeeLen {
300+
//nolint:gosec
300301
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
301302
}
302303
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

spec/capella/executionpayloadheader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ func (e *ExecutionPayloadHeader) unpack(data *executionPayloadHeaderJSON) error
289289
baseFeePerGasBEBytes := baseFeePerGas.Bytes()
290290
var baseFeePerGasLEBytes [32]byte
291291
baseFeeLen := len(baseFeePerGasBEBytes)
292-
for i := 0; i < baseFeeLen; i++ {
292+
for i := range baseFeeLen {
293+
//nolint:gosec
293294
baseFeePerGasLEBytes[i] = baseFeePerGasBEBytes[baseFeeLen-1-i]
294295
}
295296
copy(e.BaseFeePerGas[:], baseFeePerGasLEBytes[:])

0 commit comments

Comments
 (0)