Hello guys..
I'm moving from truffle to hardhat..
And noticed.. for deploying it needs two lines after getting contractFactory as per hardhat docs..
1. const contract = await contractFactory.deploy()
2. await contract.deployed()
My question is what first line is doing and what second line is doing?
Bcz with just first line alone ( i tried commenting out 2nd line) i can console log my contract address..
Jun 5, 2022, 10:40 PM
First one actually deploys the contract, second one creates an instance of the deployed contract
Jun 5, 2022, 11:13 PM
Oh thanks bro 😊😊👍
Jun 5, 2022, 11:37 PM