wighawag / hardhat-deploy-ethers

MIT License
70 stars 25 forks source link

How do I get contract from dependency? #11

Closed jc4x4 closed 1 year ago

jc4x4 commented 3 years ago

Let's say I want to write a script that reads yieldyak's smart contact. When I do await ethers.getContractFactory("DexStrategyV4"), hardhat complains that Artifacts was not found. Is there a way for getContractFactory to resolve name in node_modules?

wighawag commented 3 years ago

see : https://github.com/nomiclabs/hardhat/issues/1040

wighawag commented 1 year ago

hardhat-deploy-ethers@next has been released Please, try it out.

It is now an extension to hardhat-ethers so you need both

But note that that new version do not support external artifact if you were using them

wighawag commented 1 year ago

closing as 0.4.1 is now out as main release