Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode zero-length hex-strings with quotes #3754

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jtraglia
Copy link
Member

@jtraglia jtraglia commented May 7, 2024

When running through the reference tests, I noticed that zero-length hex-strings are encoded without quotation marks. For example, in this test case which has a zero-length extra data field:
https://media.githubusercontent.com/media/ethereum/consensus-spec-tests/master/tests/mainnet/electra/ssz_static/ExecutionPayloadHeader/ssz_random/case_1/value.yaml

telegram-cloud-photo-size-1-5028558052894289014-x

In other yaml files, this has quotation marks:

telegram-cloud-photo-size-1-5028558052894289015-x

My solution was to wrap the yaml string representer method with a special case for hex-strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants