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

Deploy ens follow official failed #248

Open
ForLina opened this issue Apr 29, 2023 · 1 comment
Open

Deploy ens follow official failed #248

ForLina opened this issue Apr 29, 2023 · 1 comment

Comments

@ForLina
Copy link

ForLina commented Apr 29, 2023

Hello, I tried to use ENSDeployer.sol in https://docs.ens.domains/deploying-ens-on-a-private-chain to deploy but got an error:
TypeError: Wrong argument count for function call: 2 arguments given but expected 4. --> contracts/ENSDeployer.sol:25:22: | 25 | publicResolver = new PublicResolver(ens, INameWrapper(address(0))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Then I check this contract in your npm repo, the construct of PublicResolver is :
constructor( ENS _ens, INameWrapper wrapperAddress, address _trustedETHController, address _trustedReverseRegistrar )
I wish I could use ENSDeployer.sol to deploy ens .Txs

@Lalith514
Copy link

It appears that you are encountering an error while using the ENSDeployer.sol contract from the ENS documentation to deploy the ENS (Ethereum Name Service) on a private chain. The error message suggests that you provided two arguments instead of the expected four when creating a new instance of the PublicResolver contract.

In the ENSDeployer.sol contract, the constructor for PublicResolver requires four arguments:

constructor(
ENS _ens,
INameWrapper wrapperAddress,
address _trustedETHController,
address _trustedReverseRegistrar
)

To resolve the issue, you need to ensure that you provide all four arguments when creating the PublicResolver contract instance. The second argument, wrapperAddress, is an instance of INameWrapper, which you need to specify with a valid address.

Make sure you have correctly followed the deployment steps mentioned in the documentation and provide the appropriate arguments when creating the PublicResolver contract instance.

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

No branches or pull requests

2 participants