Skip to content

fix: ENS CCIP Read improvements#2164

Merged
gtebrean merged 7 commits intoLFDT-web3j:mainfrom
Syn-McJ:fix/ens-ccip-read
Mar 18, 2025
Merged

fix: ENS CCIP Read improvements#2164
gtebrean merged 7 commits intoLFDT-web3j:mainfrom
Syn-McJ:fix/ens-ccip-read

Conversation

@Syn-McJ
Copy link
Copy Markdown
Contributor

@Syn-McJ Syn-McJ commented Mar 12, 2025

What does this PR do?

The current implementation of ERC-3668: CCIP Read for ENS name resolution is too strict and doesn't follow the standard exactly.

  • Currently, the {sender} parameter is enforced in URL while the standard specifies that it can be sent in POST as part of DTO.
  • Currently, the callback request is always made to the hard-coded resolveWithProof method while the standard specifies that the callbackFunction from OffchainLookup should be used.
  • Data in the isEIP3668 method might have double quotes that must be stripped.

Where should the reviewer start?

The ERC-3668: https://eips.ethereum.org/EIPS/eip-3668#abstract

Why is it needed?

These problems prevent L2 subdomains created with Durin from being resolved, as well as others like base.eth subdomains.

Checklist

  • I've read the contribution guidelines.
  • I've added tests (if applicable).
  • I've added a changelog entry if necessary.

@NickSneo
Copy link
Copy Markdown
Member

Hey @Syn-McJ , thanks for the useful PR, can you plz sign the DCO to all the commits.

Syn-McJ added 7 commits March 14, 2025 19:56
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
Signed-off-by: Andrei Ashikhmin <synmcj@gmail.com>
@Syn-McJ Syn-McJ force-pushed the fix/ens-ccip-read branch from 1432376 to b09b366 Compare March 14, 2025 12:57
@Syn-McJ
Copy link
Copy Markdown
Contributor Author

Syn-McJ commented Mar 14, 2025

Hey @Syn-McJ , thanks for the useful PR, can you plz sign the DCO to all the commits.

Done

Copy link
Copy Markdown
Member

@NickSneo NickSneo left a comment

Choose a reason for hiding this comment

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

LGTM

@gtebrean gtebrean merged commit ef3dad8 into LFDT-web3j:main Mar 18, 2025
5 checks passed
@Syn-McJ Syn-McJ deleted the fix/ens-ccip-read branch March 21, 2025 07:56
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.

3 participants