• If I use the regular ethers.getSigner => I get a ProviderError: HttpProviderError
• If I use ethers.getImpersonatedSigner => This works
For getImpersonatedSigner to be available I need to remove the NPM alias "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
But then I cant use ethers.getContract in my deployment scripts...
Hello,
I'm trying to use 'getImpersonatedSigner' function : https://hardhat.org/hardhat-network/docs/guides/forking-other-networks#impersonating-accounts
Here is a sample script that only works with
ethers.getImpersonatedSigner
:• If I use the regular
ethers.getSigner
=> I get aProviderError: HttpProviderError
• If I useethers.getImpersonatedSigner
=> This worksFor
getImpersonatedSigner
to be available I need to remove the NPM alias"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
But then I cant useethers.getContract
in my deployment scripts...Is there a workaround ?