Skip to content

refactor(ssz): use strings.Cut for len path validation - #17431

Open
elonfliter wants to merge 1 commit into
OffchainLabs:developfrom
elonfliter:refactor/use-cut-for-len-path-validation
Open

refactor(ssz): use strings.Cut for len path validation#17431
elonfliter wants to merge 1 commit into
OffchainLabs:developfrom
elonfliter:refactor/use-cut-for-len-path-validation

Conversation

@elonfliter

Copy link
Copy Markdown

What type of PR is this?

Other

What does this PR do? Why is it needed?

Use strings.Cut when checking whether len( appears after a path prefix. This keeps the existing validation behavior while making the prefix condition explicit.

Which issue(s) does this PR fix?

N/A - small internal refactor.

Other notes for review

Testing plan: bazel test //encoding/ssz/query:go_default_test

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named Ignored changelog fragment.
  • I have added sufficient context.
  • I have run the Bazel test locally.

@elonfliter
elonfliter requested a review from a team as a code owner August 31, 2026 04:22
@CLAassistant

CLAassistant commented Aug 31, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants