Confused about what .getContractFactory() does #959
-
I tries to search and ended up here But still am unable to understand what exactly it does. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@0xamey getContractFactory is an ether.js method that helps to deploy the contract itself and has many other features. It is different from getContract. getContract returns a contract object with the help of that we can interact with the contract. You can read more about getContractFactory here |
Beta Was this translation helpful? Give feedback.
-
Update: After reding more of EthersJs docs my assumption is that .ContractFactory is a new method (or whatever the proper technical term is) introduced which is similar to .getContractFactory |
Beta Was this translation helpful? Give feedback.
@0xamey getContractFactory is an ether.js method that helps to deploy the contract itself and has many other features. It is different from getContract. getContract returns a contract object with the help of that we can interact with the contract.
You can read more about getContractFactory here