Skip to content

.getcontract #4651

Answered by Nlferu
h0leee asked this question in Q&A
Jan 29, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello @h0leee

getContract() is a function used to retrieve a deployed contract instance by its name, while getContractAt() is a function used to retrieve a deployed contract instance by its address. You can find deployed contracts in deployments folder, which will be created once you deploy contract using script folder and not deploy folder as hardhat is sensitive for those.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@h0leee
Comment options

@Nlferu
Comment options

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