Skip to content

Commit 1664710

Browse files
Update deploy.js
1 parent 645db5e commit 1664710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hardhat/scripts/deploy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ async function main() {
55
const Token = await ethers.getContractFactory("Token");
66
const token = await Token.deploy();
77

8-
await token.deployTransaction.wait(); // Wait for the transaction to be mined
8+
console.log("Deploy transaction hash:", token.deployTransaction.hash);
9+
await token.deployed();
910

10-
console.log("Token deployed to:", token.address); // This should print the correct address
11+
console.log("Token deployed to:", token.address);
1112
}
1213

1314
main()

0 commit comments

Comments
 (0)