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..
First one actually deploys the contract, second one creates an instance of the deployed contract
Oh thanks bro 😊😊👍
Обсуждают сегодня