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 2e55292 commit 645db5eCopy full SHA for 645db5e
hardhat/scripts/deploy.js
@@ -5,7 +5,7 @@ async function main() {
5
const Token = await ethers.getContractFactory("Token");
6
const token = await Token.deploy();
7
8
- await token.deployed(); // Ensure the contract is deployed before accessing its address
+ await token.deployTransaction.wait(); // Wait for the transaction to be mined
9
10
console.log("Token deployed to:", token.address); // This should print the correct address
11
}
0 commit comments