ethereum-optimism / ethereum-optimism/optimism

fix(op-service/eth): Blob.UnmarshalText uses wrong hexutil label (Bytes32)

Open Beginner friendly
#19,864 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 15h
Merged PRs (30d)
145

Description

## Problem

`(*Blob).UnmarshalText` calls `hexutil.UnmarshalFixedText` with `"Bytes32"` even though `Blob` is a large fixed-size type (EIP-4844 blob), not 32 bytes. Error messages and validation can mislead callers.

## Expected

Use a type name consistent with `Blob`, e.g. `"Blob"`.

## PR

Tracked in the linked pull request.

Contributor guide

Open the contributing guide

Research direction

Start in the op-service/eth package by locating (*Blob).UnmarshalText and inspect its call to hexutil.UnmarshalFixedText. Verify the resulting error and validation behavior, then confirm that the type label is consistent with Blob and run the relevant package tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.