Skip to content

Add PublicResolverV2#263

Open
adraffy wants to merge 5 commits intodevelopfrom
feat/bet-582-locked-pr
Open

Add PublicResolverV2#263
adraffy wants to merge 5 commits intodevelopfrom
feat/bet-582-locked-pr

Conversation

@adraffy
Copy link
Copy Markdown
Member

@adraffy adraffy commented Apr 8, 2026

  • added IAddressSet
  • added PermissionedAddressSet and tests — manages a set of addresses with EAC

  • added PublicResolverV2 which is like PublicResolver except isAuthorized() uses ENSv2
  • added PublicResolverV2.t.sol
  • added tests to LockedMigrationController.t.sol
  • added deploy scripts
    • include PublicResolverV1 in set on devnet
  • fixed e2e test for whitelisted PublicResolver

@adraffy adraffy changed the base branch from main to develop April 11, 2026 19:32
@adraffy adraffy requested a review from Arachnid April 14, 2026 13:12
@adraffy adraffy marked this pull request as ready for review April 14, 2026 13:13
@immunefi-magnus
Copy link
Copy Markdown

🛡️ Immunefi PR Reviews

We noticed that your project isn't set up for automatic code reviews. If you'd like this PR reviewed by the Immunefi team, you can request it manually using the link below:

🔗 Send this PR in for review

Once submitted, we'll take care of assigning a reviewer and follow up here.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ffe47d13d6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread contracts/src/utils/PermissionedAddresses.sol Outdated
Comment thread contracts/src/migration/LockedWrapperReceiver.sol
Comment thread contracts/src/migration/LockedMigrationController.sol Outdated
Comment thread contracts/src/migration/LockedWrapperReceiver.sol Outdated
Comment thread contracts/src/utils/PermissionedAddressSet.sol
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 418a9721c2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +176 to +178
bytes memory name = NAME_WRAPPER.names(node);
if (name.length == 0) {
return false;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add auth path for names missing NameWrapper metadata

canModifyName hard-fails when NAME_WRAPPER.names(node) is empty, so ENSv2 names that were never wrapped (for example, names registered directly in ETHRegistrar) can never pass authorization in this resolver. In that case every state-changing profile call (setAddr, setText, etc.) reverts even for the current ENSv2 owner, which makes PublicResolverV2 unusable for those registrations if it is selected as their resolver.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This resolver is only used by Locked (NameWrapper) names.

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