Update deploy.js

This commit is contained in:
nikolaivanovj 2025-01-07 00:01:59 +02:00 committed by GitHub
parent 2e552925b0
commit 645db5eda2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ async function main() {
const Token = await ethers.getContractFactory("Token");
const token = await Token.deploy();
await token.deployed(); // Ensure the contract is deployed before accessing its address
await token.deployTransaction.wait(); // Wait for the transaction to be mined
console.log("Token deployed to:", token.address); // This should print the correct address
}