We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 645db5e commit 1664710Copy full SHA for 1664710
hardhat/scripts/deploy.js
@@ -5,9 +5,10 @@ async function main() {
5
const Token = await ethers.getContractFactory("Token");
6
const token = await Token.deploy();
7
8
- await token.deployTransaction.wait(); // Wait for the transaction to be mined
+ console.log("Deploy transaction hash:", token.deployTransaction.hash);
9
+ await token.deployed();
10
- console.log("Token deployed to:", token.address); // This should print the correct address
11
+ console.log("Token deployed to:", token.address);
12
}
13
14
main()
0 commit comments