Skip to content
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

ENS on Sepolia #4422

Closed
Madeindreams opened this issue Oct 12, 2023 · 5 comments
Closed

ENS on Sepolia #4422

Madeindreams opened this issue Oct 12, 2023 · 5 comments
Assignees
Labels
enhancement New feature or improvement. fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6

Comments

@Madeindreams
Copy link

Madeindreams commented Oct 12, 2023

Ethers Version

6.3.0 and 6.8.0

Search Terms

Sepolia ENS

Describe the Problem

Even if ENS is on Sepolia

when calling

EnsResolver.fromName(provider, name)

I get this error

Error: network does not support ENS (operation="getEnsAddress", info={ "network": { "chainId": 11155111, "name": "sepolia" } }, code=UNSUPPORTED_OPERATION, version=6.3.0)`

Not sure if it's related to my version of Ethers or if ENS was never added to Sepolia.

Code Snippet

No response

Contract ABI

No response

Errors

Error: network does not support ENS (operation="getEnsAddress", info={ "network": { "chainId": 11155111, "name": "sepolia" } }, code=UNSUPPORTED_OPERATION, version=6.3.0)

Environment

No response

Environment (Other)

No response

@Madeindreams Madeindreams added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Oct 12, 2023
@Madeindreams Madeindreams changed the title Add Bug Title Here ENS on Sepolia Oct 12, 2023
@Madeindreams
Copy link
Author

I have also tried with the latest version and still get the same error

@Madeindreams
Copy link
Author

I have also checked on Sepolia and the contract at 0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e exist.

@sealer3
Copy link

sealer3 commented Oct 14, 2023

Note that you can add an EnsPlugin to the network manually

@ricmoo ricmoo added enhancement New feature or improvement. on-deck This Enhancement or Bug is currently being worked on. next-patch Issues scheduled for the next arch release. and removed investigate Under investigation and may be a bug. labels Oct 14, 2023
@ricmoo
Copy link
Member

ricmoo commented Oct 14, 2023

Thanks! I’ll add this to the next patch release.

In the meantime, @sealer3 is correct, you can add the EnsPlugin to your Network manually:

const sepolia = Network.from("sepolia");
sepolia.addPlugin(new EnsPlugin());

const provider = new JsonRpcProvider(url, sepolia);

If no ENS address is provided, it will use the default. :)

ricmoo added a commit that referenced this issue Nov 1, 2023
@ricmoo
Copy link
Member

ricmoo commented Nov 1, 2023

Added in v6.8.1.

Thanks! :)

@ricmoo ricmoo closed this as completed Nov 1, 2023
@ricmoo ricmoo added fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. next-patch Issues scheduled for the next arch release. labels Nov 1, 2023
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement. fixed/complete This Bug is fixed or Enhancement is complete and published. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

3 participants