Skip to content

Difference between Contract and ContractFactory ??? #350

Answered by PatrickAlphaC
Sairam002 asked this question in Q&A
Discussion options

You must be logged in to vote

Contract is a Contract object, and it allows you to call functions and interact with a contract.

const contract = new.ethers.Contract(abi, address, Signer); 

ContractFactory is a ContractFactory object, and allows you to deploy contracts.

const contractFactory = new.ethers.ContractFactory(abi, address, Signer);

ContractFactory: Deploys Contracts
Contract: Is a contract

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@PatrickAlphaC
Comment options

@Sairam002
Comment options

@Sairam002
Comment options

Answer selected by PatrickAlphaC
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