fix: minor fixes from copilot after big pr#1932
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThese changes add validation for ENS root node queries and normalize GraphQL address input typing. A guard in forward-resolution prevents resolver-resolution flow for root records, while the Address scalar type now enforces consistent NormalizedAddress typing for both input and output. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
merged as hotfix |
Greptile SummaryTwo minor defensive fixes: adds an explicit guard in Confidence Score: 5/5Safe to merge — both changes are small, correct, and well-scoped with no functional regressions. The root-name guard is placed in the right order (after the normalization check, which the existing test suite confirms returns No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[resolveForward name] --> B[asInterpretedName name]
B --> C[_resolveForward]
C --> D{isNormalizedName?}
D -- No --> E[throw: must be normalized]
D -- Yes --> F{name === ENS_ROOT_NAME?}
F -- Yes --> G[throw: root node not supported]
F -- No --> H[namehashInterpretedName]
H --> I{isSelectionEmpty?}
I -- Yes --> J[return empty response]
I -- No --> K[makeResolveCalls & continue resolution]
Reviews (1): Last reviewed commit: "fix: minor fixes from copilot after big ..." | Re-trigger Greptile |
There was a problem hiding this comment.
Pull request overview
Small follow-up adjustments in ensapi after the larger enssdk refactor, tightening scalar typing and adding an explicit guard against unsupported forward-resolution input.
Changes:
- Update omnigraph
Addressscalar typing to useNormalizedAddressfor both input and output. - Add an explicit runtime error when attempting forward-resolution for the ENS root name (
"").
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/ensapi/src/omnigraph-api/builder.ts | Aligns Address scalar type mapping with the GraphQL scalar implementation that parses/returns normalized lowercase addresses. |
| apps/ensapi/src/lib/resolution/forward-resolution.ts | Rejects forward-resolution for the ENS root name to avoid edge-case behavior until explicitly supported. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
via these comments #1908 (review)