.getcontract
#4651
-
.getContract gives me a deployed contract or creates an instance of a contract, one that does not exist? |
Beta Was this translation helpful? Give feedback.
Answered by
Nlferu
Jan 29, 2023
Replies: 1 comment 2 replies
-
Hello @h0leee
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
h0leee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @h0leee
getContract()
is a function used to retrieve a deployed contract instance by its name, whilegetContractAt()
is a function used to retrieve a deployed contract instance by its address. You can find deployed contracts indeployments
folder, which will be created once you deploy contract usingscript
folder and notdeploy
folder as hardhat is sensitive for those.