Skip to content

Commit 645db5e

Browse files
Update deploy.js
1 parent 2e55292 commit 645db5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardhat/scripts/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ async function main() {
55
const Token = await ethers.getContractFactory("Token");
66
const token = await Token.deploy();
77

8-
await token.deployed(); // Ensure the contract is deployed before accessing its address
8+
await token.deployTransaction.wait(); // Wait for the transaction to be mined
99

1010
console.log("Token deployed to:", token.address); // This should print the correct address
1111
}

0 commit comments

Comments
 (0)