From 16647100c61cc13d12246b7266e2ad71279d0160 Mon Sep 17 00:00:00 2001 From: nikolaivanovj <110764167+nikolaivanovj@users.noreply.github.com> Date: Tue, 7 Jan 2025 00:05:52 +0200 Subject: [PATCH] Update deploy.js --- hardhat/scripts/deploy.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hardhat/scripts/deploy.js b/hardhat/scripts/deploy.js index 6ed3239dd2..0690ac2b23 100644 --- a/hardhat/scripts/deploy.js +++ b/hardhat/scripts/deploy.js @@ -5,9 +5,10 @@ async function main() { const Token = await ethers.getContractFactory("Token"); const token = await Token.deploy(); - await token.deployTransaction.wait(); // Wait for the transaction to be mined + console.log("Deploy transaction hash:", token.deployTransaction.hash); + await token.deployed(); - console.log("Token deployed to:", token.address); // This should print the correct address + console.log("Token deployed to:", token.address); } main()