Skip to content

Commit

Permalink
fix: Correct slot parsing to use ParseUint for unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 23, 2024
1 parent 8544efd commit 0eeef42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/service/eth/block_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func newBlockIdentifier(id BlockIDType, value string) BlockIdentifier {
}

func NewSlotFromString(id string) (phase0.Slot, error) {
slot, err := strconv.ParseInt(id, 10, 64)
slot, err := strconv.ParseUint(id, 10, 64)
if err != nil {
return 0, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/service/eth/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ func (h *Handler) BlobSidecars(ctx context.Context, blockID BlockIdentifier, ind

// Find the sidecar with the given index
for i, sidecar := range sidecars {
if index == int(sidecar.Index) {
if deneb.BlobIndex(index) == sidecar.Index {
filtered = append(filtered, sidecars[i])

break
Expand Down

0 comments on commit 0eeef42

Please sign in to comment.