Skip to content

Cannot deploy Unit Test for FundMe contract #5113

Answered by alymurtazamemon
isosatya asked this question in Q&A
Discussion options

You must be logged in to vote

@isosatya getContractAt is different than getContract. getContract is not deprecated instead it is a function of hardhat-deploy. You need to install these;

npm install -D hardhat-deploy @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers

and add this in you hardhat.configs.js file;

require('hardhat-deploy');

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@isosatya
Comment options

Answer selected by isosatya
Comment options

You must be logged in to vote
1 reply
@alymurtazamemon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants