Skip to content

refactor(testing): use the shared hex codec in three fixtures - #1159

Merged
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:refactor-hex-codec-consistency
Jun 18, 2026
Merged

tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:refactor-hex-codec-consistency

Conversation

@tcoratger

Copy link
Copy Markdown
Collaborator

Summary

reaggregation.py, sync.py, and api_endpoint.py hand-rolled "0x" + x.hex() while sibling fixtures already import to_hex from the shared hex_codec. Replaced the 13 occurrences with to_hex(...).

Pure structural refactor — to_hex(data) == "0x" + data.hex(), so emitted vectors are byte-identical. Found in the packages/testing audit (HEX-CODEC).

Lint: ruff check + ruff format clean.

reaggregation, sync, and api_endpoint hand-rolled the 0x-prefix concatenation while sibling
fixtures import to_hex from the shared codec. Replace the occurrences with to_hex. Emitted
vectors are byte-identical.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tcoratger
tcoratger merged commit a7bcc44 into leanEthereum:main Jun 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant