Skip to content

perf: unify hex prefix stripping to accept both 0x and 0X#2

Merged
tinom9 merged 1 commit intomainfrom
perf/hex-prefix
Mar 4, 2026
Merged

perf: unify hex prefix stripping to accept both 0x and 0X#2
tinom9 merged 1 commit intomainfrom
perf/hex-prefix

Conversation

@tinom9
Copy link
Copy Markdown
Owner

@tinom9 tinom9 commented Mar 4, 2026

Description

  • Add strip_0x and require_0x helpers to hex_utils and replace all ad-hoc .strip_prefix("0x").
  • Previously only parse_chain_id_hex and parse_block_id handled the uppercase 0X prefix.

@tinom9 tinom9 self-assigned this Mar 4, 2026
@tinom9 tinom9 merged commit 76aee45 into main Mar 4, 2026
1 check passed
@tinom9 tinom9 deleted the perf/hex-prefix branch March 4, 2026 06:49
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