Closed bagdasaryanem closed 1 year ago
So hardhat-deploy-ethers
is moving to be an extension to @nomiclabs/hardhat-ethers
you can try hardhat-deploy-ethers@next
which does this and if the error persist then you better submit the issue in https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-ethers
hardhat-deploy-ethers v0.4.1 is now out
Describe the bug When running![image](https://user-images.githubusercontent.com/73189633/219617973-5ef2a11b-8db7-49bb-8986-afbfa3f62337.png)
yarn hardhat test
on hardhat project, whereethers
package version is 6.0.4, got this error callingethers.getContract()
To Reproduce Steps to reproduce the behavior:
describe("TestContract", () => { let contract; let deployer; beforeEach(async () => { deployer = (await getNamedAccounts()).deployer; await deployments.fixture(["all"]); contract = await ethers.getContract("TestContract", deployer); }); describe("constructor", async () => { it("it tests", async () => {}); }); });