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

[Question] Support for custom ENS Registry? #911

Closed
DefiCake opened this issue Jun 26, 2020 · 3 comments
Closed

[Question] Support for custom ENS Registry? #911

DefiCake opened this issue Jun 26, 2020 · 3 comments
Labels
discussion Questions, feedback and general information. documentation Documentation related issue.

Comments

@DefiCake
Copy link

Hi,

I am browsing the documentation, but I cannot see any way to customize the ENS Registry address - for a deployment in a private chain. Is this feature supported?

@ricmoo
Copy link
Member

ricmoo commented Jun 26, 2020

Oh, it is not mentioned in the docs, but I should certainly include instructions on how to override it.

When specifying the network to the provider, you can use { name: “custom”, chainId: chainId, ensAddress: yourAddressHere } in the network parameter.

The other option (I need to post the script for this) is to replay ENS contract deployment on your testnet. They were deployed using intentionally replayable transactions so that ENS can be deployed to any network at the same address, inclduing Dev nets. You just need to prefund the ecrecover address of the transaction. I’ll include scripts, as it’s easier to see The code than to describe. :)

@DefiCake
Copy link
Author

Thanks, I will try that :)

I also prepared some scripts to deploy the same ENS registry and replay the txs, but I got stuck at registering my domains to the public registry, as the owner of the 0x0 and .eth nodes were set to some other addresses. I did not find the exact way to use them outside of the GUI they prepared for the public testnets and I did not want to study all the source code, so I gave up that and ended up deploying a custom registry since I am in a hurry ^^U but a deep thank you for suggesting it and congrats for the writing! We need more of those :)

@ricmoo ricmoo added discussion Questions, feedback and general information. documentation Documentation related issue. labels Jun 26, 2020
@ricmoo
Copy link
Member

ricmoo commented Sep 8, 2020

I've tried a quick go at getting ENS set up on a dev network and it is indeed much more complex than I expected.

I'll get instructions together someday, but have updated the docs to include info on a custom ensAddress, so I'll close this issue now. Feel free to keep discussions going though if you find out something interesting. :)

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Questions, feedback and general information. documentation Documentation related issue.
Projects
None yet
Development

No branches or pull requests

2 participants