Skip to content

Conversation

@kinderjoypresents
Copy link

Summary

This PR tightens input validation in assertGetCapabilitiesParams to ensure the optional filter array contains valid hex strings.

Previously, filter entries were accepted if they were strings that started with 0x (e.g. 0xgg would pass).
Now, filter entries must pass viem’s isHex check.

Added a regression test to ensure invalid hex values like 0xgg are rejected.

How did you test your changes?

Updated/added unit test coverage in packages/account-sdk/src/sign/base-account/utils.test.ts (added case for invalid filter entry 0xgg).

How to verify: yarn workspace @base-org/account test

@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

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