You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
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.
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
The text was updated successfully, but these errors were encountered: