Closed 0xKMG closed 1 year ago
Hi @0xKMG, we don't want to return to the hardhat-deploy-ethers
plugin after migrating to the most recent version of Hardhat which uses hardhat-toolbox
because we are trying to reduce the number of dependencies in the project. Let's find a workaround to create a system where if there is no PriceFeedConsumer deployed for a particular contractAddr
, we deploy one, OR if there is one already, we try to connect to it something like this const priceFeedConsumerContract = await PriceFeedConsumerContract.connect(deployedPriceFeedConsumerAddress, signer);
. Thanks
Thanks for your explanation! I kind of assumed that's the preferred way for contract like this (Patrick did the same in his course) without a second thought.
May I create another pull request to implement the changes you've mentioned? thanks
Of course, @0xKMG, go for it!
ethers.getContract function used in the readPrice.js script is not available if the hardhat-deploy-ethers plugin is missing.