ethereum-optimism / ethereum-optimism/optimism

fix(op-service/eth): Bytes256.UnmarshalText reports wrong type name (Bytes32)

Open
#19,862 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 38m
Merged PRs (30d)
164

Description

## Problem

`(*Bytes256).UnmarshalText` calls `hexutil.UnmarshalFixedText` with the string `"Bytes32"` instead of `"Bytes256"`, so validation/error output refers to the wrong type.

## Expected

Pass `"Bytes256"` like other fixed-size types do for their width.

## PR

Tracked in the linked pull request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.