Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update examples export to be published to NPM #2130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Update examples export to be published to NPM #2130
Changes from 6 commits
2ed324ce6413bb100fda56239a61410e6ffd5ce33dca6540aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable
_SEPOLIA_V2_USER_ADDRESSdeclared but never referenced anywhere in the codebaseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the Sepolia V2 fixtures that actually demonstrate permissions.
Line 35 introduces
_SEPOLIA_V2_USER_ADDRESSas an address with v2ETHRegistrypermissions, but Lines 303-304 and 328-329 still point the exported Sepolia V2 examples at fixtures that are explicitly documented as returning empty results. That means the publishedpermissions-by-contractandpermissions-by-userexamples stay blank in the namespace this PR is trying to make consumable.Suggested patch
variables: { // TODO: same as above default: { contract: ENS_TEST_ENV_V2_ETH_REGISTRAR }, - // TODO: example response is empty for this address on Sepolia V2 - [ENSNamespaceIds.SepoliaV2]: { contract: SEPOLIA_V2_V2_ETH_REGISTRAR }, + [ENSNamespaceIds.SepoliaV2]: { contract: SEPOLIA_V2_V2_ETH_REGISTRY }, }, }, @@ variables: { default: { address: accounts.deployer.address }, - // TODO: example response is empty for this address on Sepolia V2 - [ENSNamespaceIds.SepoliaV2]: { address: SEPOLIA_V2_ADDRESS_WITH_LOT_OF_NAMES }, + [ENSNamespaceIds.SepoliaV2]: { address: _SEPOLIA_V2_USER_ADDRESS }, }, },Also applies to: 300-304, 326-329
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win
Enforce the query-ID invariant explicitly and fail fast on duplicates.
Line 422 currently allows duplicate
idvalues to overwrite silently in the lookup map. Sinceidis now a public lookup contract, encode it as a dedicated alias and throw on duplicates during map construction.Suggested patch
Also applies to: 421-423
🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.